2 include_once 'Mail.php';
3 include_once 'Mail/mime.php';
5 $brisk_mail_hp = array( "text_charset" => "utf-8",
6 "html_charset" => "utf-8",
7 "header_charset" => "utf-8",
10 // references: <alfanum-8-chars>@<domain>
11 function brisk_mail($to, $subject, $text, $html)
13 GLOBAL $brisk_mail_hp, $G_admin_mail;
16 'From' => $G_admin_mail,
20 // $hdrs['References'] = $refs;
22 $mime = new Mail_mime($brisk_mail_hp);
24 // disabled to avoid client problems
25 // $mime->setTXTBody($text);
26 $mime->setHTMLBody($html);
29 $hdrs = $mime->headers($hdrs);
31 $mail = Mail::factory('mail');
33 $mail->send($to, $hdrs, $body);