From 352378ac99203d15ce704f450a9405da56ce6d19 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 20 Oct 2011 09:57:36 -0500 Subject: [PATCH] Added error_log when e-mail sending fails - this will enable much faster debug on remote servers --- main/inc/lib/mail.lib.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 main/inc/lib/mail.lib.inc.php diff --git a/main/inc/lib/mail.lib.inc.php b/main/inc/lib/mail.lib.inc.php old mode 100755 new mode 100644 index d3baa4a94b..bf8ae96195 --- a/main/inc/lib/mail.lib.inc.php +++ b/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.'
'; + error_log('ERROR: mail not sent to '.$recipient_name.' ('.$recipient_email.') because of '.$mail->ErrorInfo.'
'); return 0; }