From ebe3beb9f5691c29c3fb394ced4a528055661e96 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 Jul 2021 15:08:53 +0800 Subject: [PATCH] debug --- Mailer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mailer.php b/Mailer.php index 2b3c2746..c289c55f 100644 --- a/Mailer.php +++ b/Mailer.php @@ -365,6 +365,12 @@ class Pman_Core_Mailer { } $oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); + if ($this->debug) { + print_r(array( + 'rcpts' => $rcpts, + 'email' => $email + )); + } $ret = $mail->send($rcpts,$email['headers'],$email['body']); error_reporting($oe); if ($ret === true) { -- 2.39.2