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 | */ |
---|
17 | class clj { |
---|
18 | |
---|
19 | static public function send_mail($result, $mailto, $subject, $content, $headers, $args) { |
---|
20 | |
---|
21 | $ret =clj_send_mail($result, $mailto, $subject, $content, $headers, $args); |
---|
22 | |
---|
23 | if($ret=="") return true ; |
---|
24 | return true ; |
---|
25 | |
---|
26 | // |
---|
27 | return false; // envoie |
---|
28 | return true ; // pas d'envoie |
---|
29 | } |
---|
30 | /************************************ |
---|
31 | * |
---|
32 | *************************************/ |
---|
33 | static public function send_mail_to( $to){ |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | return $to; |
---|
38 | } |
---|
39 | /************************************ |
---|
40 | * |
---|
41 | *************************************/ |
---|
42 | static public function send_mail_subject($cvt_subject){ |
---|
43 | |
---|
44 | return $cvt_subject; |
---|
45 | } |
---|
46 | /************************************ |
---|
47 | * |
---|
48 | *************************************/ |
---|
49 | static public function send_mail_content($content){ |
---|
50 | |
---|
51 | return $content; |
---|
52 | } |
---|
53 | /************************************ |
---|
54 | * |
---|
55 | *************************************/ |
---|
56 | static 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 | |
---|
63 | return $headers_init; |
---|
64 | } |
---|
65 | |
---|
66 | |
---|
67 | } |
---|
68 | ?> |
---|