From 41b08b4f4f34bd8cb6168a7d350267a0c3725c4f Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 12:47:51 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.2