From: Alan Knowles Date: Thu, 22 Jul 2021 07:08:53 +0000 (+0800) Subject: debug X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=ebe3beb9f5691c29c3fb394ced4a528055661e96 debug --- 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) {