From: Alan Knowles Date: Fri, 10 Apr 2015 04:07:37 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=11c7bbf1961072dfc5552e440479d346b518b3e8;p=Pman.Core NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index b19db892..17d6d174 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -363,23 +363,23 @@ class Pman_Core_NotifySend extends Pman // enable cc in notify.. if (!empty($email['headers']['Cc'])) { - $mailer = Mail::factory('smtp', array( + $cmailer = Mail::factory('smtp', array( //'host' => $dom , // 'debug' => true )); $email['headers']['Subject'] = "(CC): " . $email['headers']['Subject']; - $mailer->send($email['headers']['Cc'], + $cmailer->send($email['headers']['Cc'], $email['headers'], $email['body']); } if (!empty($email['bcc'])) { - $mailer = Mail::factory('smtp', array( + $cmailer = Mail::factory('smtp', array( //'host' => $dom , // 'debug' => true )); $email['headers']['Subject'] = "(CC): " . $email['headers']['Subject']; - $mailer->send($email['bcc'], + $cmailer->send($email['bcc'], $email['headers'], $email['body']); } @@ -411,6 +411,8 @@ class Pman_Core_NotifySend extends Pman $w->act_when = date('Y-m-d H:i:s', strtotime('NOW + ' . $retry . ' MINUTES')); $w->update($ww); var_dump( $this->debug_str ); + var_dump( $res); + var_dump( $mailer); $this->errorHandler(date('Y-m-d h:i:s') . " - GREYLISTED - $errmsg \n"); } $fail = true;