Commit 115a5762 by William W

Log any email send errors

parent 768ed4d1
...@@ -152,7 +152,11 @@ ...@@ -152,7 +152,11 @@
} }
} }
return $mailer->Send(); $send_status = $mailer->Send();
if(!$send_status){
@error_log('PHP Question2Answer email send error: '.$mailer->ErrorInfo);
}
return $send_status;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment