Mailer.php
authorAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 06:29:51 +0000 (14:29 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 06:29:51 +0000 (14:29 +0800)
Mailer.php

index 8ded27f..c9f9dea 100644 (file)
@@ -279,6 +279,10 @@ class Pman_Core_Mailer {
         $mailOptions = PEAR::getStaticProperty('Mail','options');
         //print_R($mailOptions);exit;
         $mail = Mail::factory("SMTP",$mailOptions);
+        if ($this->debug) {
+            $mail->debug = $this->debug;
+        }
+        
         $email['headers']['Date'] = date('r'); 
         if (PEAR::isError($mail)) {
             $pg->addEvent("COREMAILER-FAIL",  false, "mail factory failed");