From d69921c709d695232a4d43c08e05461e57079f1a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 25 Apr 2023 12:27:27 +0200 Subject: [PATCH] echo error message in debug mode --- inc/inc.ClassEmailNotify.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/inc.ClassEmailNotify.php b/inc/inc.ClassEmailNotify.php index f0445082f..8983581e4 100644 --- a/inc/inc.ClassEmailNotify.php +++ b/inc/inc.ClassEmailNotify.php @@ -239,6 +239,8 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify { } $result = $mail->send($to, $hdrs, $message); if (PEAR::isError($result)) { + if($this->debug) + echo "\n".$result->getMessage(); return false; } else { return true;