I got a code like this:
$headers = '';
//$headers .= 'Reply-To: "site\'s name" <[email protected]>'."\r\n";
//$headers .= 'From: "site\'s name" <[email protected]>'."\r\n";
$headers .= 'MIME-Version: 1.0'."\r\n";
$headers .= 'Content-type: text/html; charset=utf-8'."\r\n";
mail($_POST['email'], stripslashes($result['title']), $message, $headers);
As long as those two lines are commented out, it sends emails correctly. Otherwise - it just doesn't. Without giving any error or even notice. It worked (uncommented code) until yesterday and now it stopped. Any ideas, why would it happen? I cannot use Swift or anything like that, because it's not my project.
Edit: incorrect quoting, but that wasn't the problem. Edit: damn, it was just server admins, they blocked all mails with headers from non-existing accounts. I just had to create such mailbox, and i started working back again...