NotifySend.php
authoredward <edward@roojs.com>
Thu, 14 Jul 2016 06:48:04 +0000 (14:48 +0800)
committeredward <edward@roojs.com>
Thu, 14 Jul 2016 06:48:04 +0000 (14:48 +0800)
NotifySend.php

index 39aa4a6..63870e4 100644 (file)
@@ -403,7 +403,10 @@ class Pman_Core_NotifySend extends Pman
                         ");
                         
                         if($core_notify->count() >= $settings['rate']){
-                            
+                            $old = clone($w);
+                            $w->act_when = date("Y-m-d H:i:s", strtotime('+1 HOUR'));
+                            $w->update($old);
+                            $this->errorHandler(date('Y-m-d h:i:s ') . " Too many emails sent by {$dom}");
                         }
                         
                         $mailer->host = $server;