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

index cd44f97..b8f16b1 100644 (file)
@@ -47,6 +47,8 @@ class Pman_Core_NotifySmtpCheck extends Pman
                 
                 foreach ($mx as $mserver => $mpriority) {
                     
+                    $smtpmx->_smtp = new Net_SMTP($mserver, $smtpmx->port, $smtpmx->mailname);
+
                     $res = $smtpmx->_smtp->connect($smtpmx->timeout);
 
                     print_R($res);exit;