source: extensions/Mail_supervisor/mail_send.inc.php @ 11807

Last change on this file since 11807 was 11807, checked in by cljosse, 13 years ago

[extensions] mail_supervisor add 'title' and subject in tab test

File size: 1.5 KB
Line 
1<?php
2/*
3$return = pwg_mail
4          (
5            '',
6            array
7            (
8              'Bcc' => $Bcc,
9              'subject' => l10n_args($keyargs_subject),
10              'email_format' => $email_format,
11              'content' => $mail_template->parse($tpl_shortname, true),
12              'content_format' => $email_format,
13              'theme' => $elem['theme']
14            )
15          ) and $return;
16*/
17class clj {
18
19static public function send_mail($result, $mailto, $subject, $content, $headers, $args) { 
20
21$ret =clj_send_mail($result, $mailto, $subject, $content, $headers, $args);
22
23if($ret=="") return true ;
24return true ;
25
26//
27return false; // envoie
28return true ; // pas d'envoie
29}
30/************************************
31*
32*************************************/
33static public function send_mail_to( $to){
34 
35
36 
37return $to;
38}
39/************************************
40*
41*************************************/
42static public function send_mail_subject($cvt_subject){
43
44return $cvt_subject;
45}
46/************************************
47*
48*************************************/
49static public function send_mail_content($content){
50
51return $content;
52}
53/************************************
54*
55*************************************/
56static public function send_mail_headers($headers_init){
57
58  //    $headers_init =  preg_replace('/.*Bcc(.*).\n/i', '', $headers_init);
59  //    $headers_init =  preg_replace('/.*Cc(.*).\n/i', '', $headers_init);
60
61 
62
63return $headers_init;
64}
65       
66 
67 }
68?>
Note: See TracBrowser for help on using the repository browser.