From ab78c2a8a1f13b21d64db9451b9dce705fccd9e6 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 12:54:22 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 67bc8a48..0113564c 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -54,13 +54,15 @@ class Pman_Core_NotifySmtpCheck extends Pman // $smtpmx = new Mail_smtpmx($params); // $smtpmx->debug = true; - $options = array ( - 'ssl' => array( - 'verify_peer' => false, - 'verify_peer_name' => false, - 'allow_self_signed' => true)); + $socket_options = array ( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + 'allow_self_signed' => true + ) + ); - $smtp = new Net_SMTP($server, 993, $dom, false, 0, $options); + $smtp = new Net_SMTP($server, 993, $dom, false, 0, $socket_options); $smtp->setDebug(true); // print_R($smtp); @@ -73,9 +75,8 @@ class Pman_Core_NotifySmtpCheck extends Pman print_R('error?????');exit; } - $r = $smtp->auth($settings['username'], $settings['password']); + $res = $smtp->auth($settings['username'], $settings['password']); - print_R($r);exit; // $smtpmx->_smtp->disconnect(); print_r("resutlt : {$res} \n"); exit; -- 2.39.2