From: edward Date: Fri, 29 Jul 2016 08:22:54 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b881a6a15b155b861bcac9db7ad25842ed913c60 NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 78a59137..4851828e 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -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);