add mailer error reporting
This commit is contained in:
parent
985ddda41f
commit
f81f3df700
@ -154,6 +154,9 @@ class Message
|
|||||||
$mail->Body = $body;
|
$mail->Body = $body;
|
||||||
}
|
}
|
||||||
$mail->send();
|
$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;">
|
//<p style="font-family: Helvetica, sans-serif; font-size: 16px; font-weight: normal; margin: 0; margin-bottom: 16px;">
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user