NotifySend.php
authorAlan <alan@roojs.com>
Fri, 6 Oct 2023 04:33:27 +0000 (12:33 +0800)
committerAlan <alan@roojs.com>
Fri, 6 Oct 2023 04:33:27 +0000 (12:33 +0800)
NotifySend.php

index 3b7f883..3e851e4 100644 (file)
@@ -322,12 +322,8 @@ class Pman_Core_NotifySend extends Pman
         
         if (!$force && strtotime($w->act_start) <  strtotime('NOW - 3 DAY')) {
             $ev = $this->addEvent('NOTIFYFAIL', $w, "BAD ADDRESS - GIVE UP - ". $p->email );
-            $w->sent =  $w->sqlValue('NOW()'); 
-            $w->msgid = '';
-            $w->event_id = $ev->id;
-            $w->to_email = $p->email; 
-            $w->update($ww);
-            $this->errorHandler(date('Y-m-d h:i:s') . " - FAILED -  GAVE UP TO OLD - {$p->email} \n");
+            $w->flagDone($ev, '');
+            $this->errorHandler(date('Y-m-d h:i:s') . $ev->remarks);
         }