From: leon Date: Tue, 4 Jul 2023 02:52:33 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=baae70ffac9eed7dbdd5187544a4ea8bc145a890;p=Pman.Core NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index f92e5232..35aa4ec8 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -236,6 +236,7 @@ class Pman_Core_NotifySend extends Pman $w->sent = (!$w->sent || $w->sent == '0000-00-00 00:00:00') ? $w->sqlValue('NOW()') : $w->sent; // do not update if sent..... $w->msgid = ''; $w->event_id = $ev->id; + $w->to_email = $p->email; $w->update($ww); $this->errorHandler(date('Y-m-d h:i:s ') . (isset($email['error']) ? @@ -284,6 +285,7 @@ class Pman_Core_NotifySend extends Pman $w->sent = (!$w->sent || $w->sent == '0000-00-00 00:00:00') ? $w->sqlValue('NOW()') : $w->sent; // do not update if sent..... $w->msgid = ''; $w->event_id = $ev->id; + $w->to_email = $p->email; $w->update($ww); $this->errorHandler(date('Y-m-d h:i:s ') . "INVALID ADDRESS: " . $p->email. "\n"); @@ -332,6 +334,7 @@ class Pman_Core_NotifySend extends Pman $w->msgid = ''; $w->event_id = $ev->id; $w->to_email = $p->email; + $w->to_email = $p->email; $w->update($ww); $this->errorHandler(date('Y-m-d h:i:s') . " - FAILED - BAD EMAIL - {$p->email} \n");