Added error_log when e-mail sending fails - this will enable much faster debug on remote servers

skala
Yannick Warnier 14 years ago
parent 7da6236b3e
commit 352378ac99
  1. 2
      main/inc/lib/mail.lib.inc.php

@ -88,7 +88,7 @@ function api_mail($recipient_name, $recipient_email, $subject, $message, $sender
// Send the mail message.
if (!$mail->Send()) {
//echo 'ERROR: mail not sent to '.$recipient_name.' ('.$recipient_email.') because of '.$mail->ErrorInfo.'<br />';
error_log('ERROR: mail not sent to '.$recipient_name.' ('.$recipient_email.') because of '.$mail->ErrorInfo.'<br />');
return 0;
}

Loading…
Cancel
Save