From: edward Date: Thu, 14 Jul 2016 04:43:00 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=dd05ea5bd0ec8cc3eb39b26aa7cf6a16377259b6 NotifySmtpCheck.php --- diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 827dda39..94c73ca0 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -56,15 +56,17 @@ class Pman_Core_NotifySmtpCheck extends Pman $smtp = new Net_SMTP($server, 25, $dom); $smtp->setDebug(true); - print_R($smtp); +// print_R($smtp); // print_R($smtpmx->_smtp);exit; - $res = $smtpmx->_smtp->connect($smtpmx->timeout); + $res = $smtp->connect($smtpmx->timeout); if (is_a($res, 'PEAR_Error')) { print_R('error?????');exit; } + + $smtp->auth($settings['username'], $settings['password']); // $smtpmx->_smtp->disconnect(); print_r("resutlt : {$res} \n");