NotifySend.php
authoredward <edward@roojs.com>
Fri, 29 Jul 2016 08:22:54 +0000 (16:22 +0800)
committeredward <edward@roojs.com>
Fri, 29 Jul 2016 08:22:54 +0000 (16:22 +0800)
NotifySend.php

index 78a5913..4851828 100644 (file)
@@ -454,7 +454,9 @@ class Pman_Core_NotifySend extends Pman
             if ($res === true) {
                 // success....
                 
-                $ev = $this->addEvent('NOTIFYSENT', $w, "{$w->to_email} - {$email['headers']['Subject']}");
+                $successEventName = (empty($email['successEventName'])) ? 'NOTIFYSENT' : $email['successEventName'];
+                
+                $ev = $this->addEvent($successEventName, $w, "{$w->to_email} - {$email['headers']['Subject']}");
                 
                 $ev->writeEventLog($this->debug_str);