From f81f3df700196ea2b022dd7f9c7bb578cb5a26ec Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:43:42 +0100 Subject: [PATCH] add mailer error reporting --- system/autoload/Message.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/autoload/Message.php b/system/autoload/Message.php index 988c98e0..cdc04525 100644 --- a/system/autoload/Message.php +++ b/system/autoload/Message.php @@ -154,6 +154,9 @@ class Message $mail->Body = $body; } $mail->send(); + if (!$mail->send()) { + _log(Lang::T("Email not sent, Mailer Error: ") . $mail->ErrorInfo); + } //

}