From: edward Date: Thu, 14 Jul 2016 05:04:19 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=6214cd6eb96b948619986754b1da737786f36a7d NotifySmtpCheck.php --- diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index a6c31300..d693ab88 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -77,8 +77,11 @@ class Pman_Core_NotifySmtpCheck extends Pman $res = $smtp->auth($settings['username'], $settings['password']); -// $smtpmx->_smtp->disconnect(); - print_r("resutlt : {$res} \n"); + if (is_a($res, 'PEAR_Error')) { + die($res); + } + + print_R("SUCCESS? {$res} \n"); exit; // $mx = $smtpmx->_getMx($dom);