var $bcc = false;
- function Pman_Core_Mailer($args) {
+ function __construct($args) {
foreach($args as $k=>$v) {
// a bit trusting..
$this->$k = $v;
$ret = $mail->send($rcpts,$email['headers'],$email['body']);
error_reporting($oe);
if ($ret === true) {
-// $pg->addEvent("COREMAILER-SENT", false,
-// 'To: ' . ( is_array($rcpts) ? implode(', ', $rcpts) : $rcpts ) .
-// 'Subject: ' . @$email['headers']['Subject']
-// );
+ $pg->addEvent("COREMAILER-SENT", false,
+ 'To: ' . ( is_array($rcpts) ? implode(', ', $rcpts) : $rcpts ) .
+ 'Subject: ' . @$email['headers']['Subject']
+ );
} else {
$pg->addEvent("COREMAILER-FAIL", false, $ret->toString());
}