From f9c7958583042e77168c13be69ca9ffcbf4fbed3 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 1 Jun 2018 04:44:35 +0200 Subject: [PATCH] mailcannon returns boolean and does not throw errors --- lib/mailcannon.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mailcannon.php b/lib/mailcannon.php index 9ae489b..a1a91b3 100644 --- a/lib/mailcannon.php +++ b/lib/mailcannon.php @@ -40,7 +40,8 @@ class mailcannon { $recipients = array( 'To' => $to); $succ = $mail->send($recipients, $hdrs, $body); if (PEAR::isError($succ)) { - throw new \SYSTEM\LOG\ERROR('Error Sending HTML message to ' . $to . ' ' . $succ->getMessage());} + return false;} + return true; } public static function fire($delay,$from,$subject,$html_file,$text_file,$member_list,$unsubscribe_list,$images,$attachments,$replacements,$smtp = null,$silent = false){