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

index a8071ef..e2e5183 100644 (file)
@@ -43,9 +43,9 @@ 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($server, $smtpmx->port, $smtpmx->mailname);
                     
@@ -55,7 +55,7 @@ class Pman_Core_NotifySmtpCheck extends Pman
                     $smtpmx->_smtp->disconnect();
                     
                     print_R($res);exit;
-//                }
+                }
                 
             }