NotifySmtpCheck.php
authoredward <edward@roojs.com>
Thu, 14 Jul 2016 04:25:12 +0000 (12:25 +0800)
committeredward <edward@roojs.com>
Thu, 14 Jul 2016 04:25:12 +0000 (12:25 +0800)
NotifySmtpCheck.php

index 4aaa448..7765062 100644 (file)
@@ -42,12 +42,16 @@ class Pman_Core_NotifySmtpCheck extends Pman
                 );
                 
                 $params = array(
-                    'netdns' => false,
-                    'mailname' => 'edward.roojs'
+                    'netdns' => false
                 );
                 
                 $smtpmx = new Mail_smtpmx($params);
                 
+                $result = $smtpmx->_sanitizeHeaders($headers);
+                if (is_a($result, 'PEAR_Error')) {
+                    $this->jerr("Error occour on '_sanitizeHeaders' \n");
+                }
+
                 $smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $smtpmx->mailname);
                     
 //                print_R($smtpmx->_smtp);exit;