From b881a6a15b155b861bcac9db7ad25842ed913c60 Mon Sep 17 00:00:00 2001 From: edward Date: Fri, 29 Jul 2016 16:22:54 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2