Mailer.php
authorAlan Knowles <alan@roojs.com>
Wed, 8 Oct 2014 11:19:16 +0000 (19:19 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 8 Oct 2014 11:19:16 +0000 (19:19 +0800)
Mailer.php

index d6bc570..9273c27 100644 (file)
@@ -315,8 +315,10 @@ class Pman_Core_Mailer {
                 'To: ' .  ( is_array($rcpts) ? implode(', ', $rcpts) : $rcpts ) .
                 'Subject: '  . @$email['headers']['Subject']
             ); 
-        }  
-       
+        }  else {
+            $pg->addEvent("COREMAILER-FAIL",  false, $res->toString());
+        }
+        
         return $ret;
     }