From: Alan Knowles Date: Fri, 3 Feb 2012 02:53:31 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=41d70b51f0fb0ab315d666224828ca741c228a54;p=Pman.Core NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 1ab2aff2..a313de20 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -241,6 +241,10 @@ class Pman_Core_NotifySend extends Pman // 'debug' => true )); $res = $mailer->send($p->email, $email['headers'], $email['body']); + + + + if ($res === true) { // success.... @@ -273,6 +277,7 @@ class Pman_Core_NotifySend extends Pman // what type of error.. $code = empty($res->userinfo['smtpcode']) ? -1 : $res->userinfo['smtpcode']; if ($code < 0) { + $this->debug(print_R($res,true)); continue; // try next mx... ??? should we wait??? - nope we did not even connect.. } // give up after 2 days..