From: edward Date: Thu, 14 Jul 2016 04:54:22 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=ab78c2a8a1f13b21d64db9451b9dce705fccd9e6;hp=552aa6ef5daf2df0f18fd3b6babbe7cc473c03db;p=Pman.Core NotifySmtpCheck.php --- 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;