mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 17:54:55 +02:00
Save mailer error messages to file (always)
Filename: mailer-error.log This will help debugging mail sending for new users
This commit is contained in:
@@ -54,7 +54,7 @@ if(strlen($subject) > 255) {
|
||||
}
|
||||
|
||||
if(!_mail($email_account_name, $subject, $message)) {
|
||||
echo 'Error while sending mail: ' . $mailer->ErrorInfo . PHP_EOL;
|
||||
echo 'An error occurred while sending email. More info can be found in system/logs/mailer-error.log';
|
||||
exit(6);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user