From 6214cd6eb96b948619986754b1da737786f36a7d Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 13:04:19 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.39.2