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

index 397665a..95cecd7 100644 (file)
@@ -54,7 +54,13 @@ class Pman_Core_NotifySmtpCheck extends Pman
 //                $smtpmx = new Mail_smtpmx($params);
 //                $smtpmx->debug = true;
                 
-                $smtp = new Net_SMTP($server, 25, $dom);
+                $options = array(
+            'verify_peer'  => false,
+            'verify_peer_name'  => false,
+            'allow_self_signed' => true);
+                
+                $smtp = new Net_SMTP($server, 25, $dom, false, 0, $options);
+                
                 $smtp->setDebug(true);
 //                print_R($smtp);