I just switched over from PHP3 to PHP4, with only one problem. The following code used to work beautifully:
$headers .= "From: Me <contact@me.com>\n";
$headers .= "Reply-To: <contact@me.com>\n";
$headers .= "X-Sender: <contact@me.com>\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "Return-Path: <contact@me.com>\n";
$to = "me@bairey.net";
$subject = "Subject 1";
$message = "This is message 1, stored in variables.";
mail($to, $subject, $message, $headers);
Now it doesn't. I tried inputting the actual values, so:
mail("me@bairey.net", "Subject 2", "This is message 2, not stored in variables.", "From: Me <contact@me.com>\nReply-To: <contact@me.com>\nX-Sender: <contact@me.com>\nX-Mailer: PHP\nReturn-Path: <contact@me.com>\n");
No change. I get no errors, the mail just never shows up. Any ideas?
TIA,
Steph