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

index a45ee4d..976ea33 100644 (file)
@@ -43,16 +43,16 @@ class Pman_Core_NotifySmtpCheck extends Pman
                 
                 $smtpmx = new Mail_smtpmx($params);
                 
-                $mx = $smtpmx->_getMx($dom);
+//                $mx = $smtpmx->_getMx($dom);
                 
-                foreach ($mx as $mserver => $mpriority) {
+//                foreach ($mx as $mserver => $mpriority) {
                     
-                    $smtpmx->_smtp = new Net_SMTP('test.com', $smtpmx->port, $smtpmx->mailname);
+                    $smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $smtpmx->mailname);
 
                     $res = $smtpmx->_smtp->connect($smtpmx->timeout);
 
                     print_R($res);exit;
-                }
+//                }
                 
             }