Mailer.php
authorAlan Knowles <alan@roojs.com>
Tue, 4 Sep 2018 06:24:02 +0000 (14:24 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 4 Sep 2018 06:24:02 +0000 (14:24 +0800)
Mailer.php

index 52c1133..23fb875 100644 (file)
@@ -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;