echo error message in debug mode

This commit is contained in:
Uwe Steinmann 2023-04-25 12:27:27 +02:00
parent 798a52ed37
commit d69921c709

View File

@ -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;