error handling
authorAlan <alan@roojs.com>
Wed, 11 Oct 2023 02:50:43 +0000 (10:50 +0800)
committerAlan <alan@roojs.com>
Wed, 11 Oct 2023 02:50:43 +0000 (10:50 +0800)
NotifySend.php

index 59b0c11..959d58e 100644 (file)
@@ -428,7 +428,7 @@ class Pman_Core_NotifySend extends Pman
         
             
             $res = $mailer->send($p->email, $email['headers'], $email['body']);
-             $this->debug("GOT response to send: ". var_export($res,true)); 
+            $this->debug("GOT response to send: ". var_export($res,true)); 
             
             if ($res === true) {
                 // success....
@@ -461,7 +461,7 @@ class Pman_Core_NotifySend extends Pman
                     }
                 }
                  
-                $this->errorHandler( " SENT {$w->id} - {$w->remarks}", true);
+                $this->errorHandler( " SENT {$w->id} - {$ev->remarks}", true);
             }
             // what type of error..
             $code = empty($res->userinfo['smtpcode']) ? -1 : $res->userinfo['smtpcode'];