debug
authorAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 07:08:53 +0000 (15:08 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 07:08:53 +0000 (15:08 +0800)
Mailer.php

index 2b3c274..c289c55 100644 (file)
@@ -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) {