From 8ff3c52a011ab89762ed82dcb22f73ee3b9c00c3 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 13:28:30 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 1de2f94e..ca0eb39c 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -51,7 +51,7 @@ class Pman_Core_NotifySmtpCheck extends Pman foreach ($ff->Core_Notify['routes'] as $server => $settings){ if(empty($settings['domains']) || empty($settings['username']) || empty($settings['password'])){ - $error[] = "{$server} missing domains / username / password"; + $error[] = "{$server} - Missing domains / username / password"; continue; } @@ -72,21 +72,19 @@ class Pman_Core_NotifySmtpCheck extends Pman $res = $smtp->connect(10); if (is_a($res, 'PEAR_Error')) { - die("Cound not connect to {$server}"); + $error[] = "{$server} - Cound not connect"; + continue; } $res = $smtp->auth($settings['username'], $settings['password']); if (is_a($res, 'PEAR_Error')) { - die($res); + $error[] = "{$server} - Cound not login"; + continue; } - print_R("SUCCESS? {$res} \n"); - exit; - } - } } -- 2.39.2