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:
@@ -30,7 +30,7 @@ if ($preview) {
|
||||
$preview_done = _mail($account_logged->getCustomField('email'), $mail_subject, $mail_content);
|
||||
|
||||
if (!$preview_done)
|
||||
error('Error while sending preview mail: ' . $mailer->ErrorInfo);
|
||||
error('Error while sending preview mail. More info can be found in system/logs/mailer-error.log');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ foreach ($query as $email) {
|
||||
else {
|
||||
$failed++;
|
||||
echo '<br />';
|
||||
error('An error occorred while sending email to <b>' . $email['email'] . '</b>. Error: ' . $mailer->ErrorInfo);
|
||||
error('An error occorred while sending email to <b>' . $email['email'] . '</b>. For Admin: More info can be found in system/logs/mailer-error.log');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user