From d7cc910e8ec83d59703b6e9fca17d50351b2b573 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 4 Sep 2018 14:24:02 +0800 Subject: [PATCH] Mailer.php --- Mailer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mailer.php b/Mailer.php index 52c11332..23fb8758 100644 --- a/Mailer.php +++ b/Mailer.php @@ -373,7 +373,10 @@ class Pman_Core_Mailer { 'Subject: ' . @$email['headers']['Subject'] ); } else { - $pg->addEvent("COREMAILER-FAIL", false, $ret->toString()); + $pg->addEvent("COREMAILER-FAIL", false, + "Sending to : " . ( is_array($rcpts) ? implode(', ', $rcpts) : $rcpts ) . + " Error: " . $ret->toString()); + } return $ret; -- 2.39.2