add mailer error reporting

This commit is contained in:
Focuslinkstech 2024-09-13 10:43:42 +01:00 committed by GitHub
parent 985ddda41f
commit f81f3df700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,6 +154,9 @@ class Message
$mail->Body = $body;
}
$mail->send();
if (!$mail->send()) {
_log(Lang::T("Email not sent, Mailer Error: ") . $mail->ErrorInfo);
}
//<p style="font-family: Helvetica, sans-serif; font-size: 16px; font-weight: normal; margin: 0; margin-bottom: 16px;">
}