I've been using the PHP mail()
function.
If the mail doesn't send for any reason, I'd like to echo the error message. How would I do that?
Something like
$this_mail = mail('[email protected]', 'My Subject', $message);
if($this_mail) echo 'sent!';
else echo error_message;
Thanks!