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

index b4e83c5..961496a 100644 (file)
@@ -45,7 +45,14 @@ class Pman_Core_NotifySmtpCheck extends Pman
                 
                 $mx = $smtpmx->_getMx($dom);
                 
-                print_r($smtpmx);exit;
+                foreach ($mx as $mserver => $mpriority) {
+                    
+
+                    // attempt to connect to the configured SMTP server.
+                    $res = $smtpmx->_smtp->connect($smtpmx->timeout);
+
+                    print_R($res);exit;
+                }
                 
             }