From: edward Date: Thu, 14 Jul 2016 04:47:51 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=41b08b4f4f34bd8cb6168a7d350267a0c3725c4f NotifySmtpCheck.php --- diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 397665a0..95cecd7f 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -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);