From 8bd33afc7bb9591de2a1f19b5f9eaa41e75672d2 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 11 Oct 2023 10:50:43 +0800 Subject: [PATCH] error handling --- NotifySend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NotifySend.php b/NotifySend.php index 59b0c111..959d58e0 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -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']; -- 2.39.2