Here is my code for sending an email:
$headers = "From: MySite.com <support@mysite.com>\r
";
$headers .= "Reply-To: $sender\r
";
$message = wordwrap($message,70);
mail($recipient, $subject, $message, $headers);
However, a tech support dude from my ISP looked in the log files and said the FROM field is actually:
[noparse]recordtest@host363.hostmnster.com[/noparse]
For this reason, some ISPs are blocking the emails I send out. What do I need to add to my code so that the FROM field is really [noparse]support@mysite.com[/noparse]. This sure explains why bounced email messages from the website goto the root email account and not [noparse]support@mysite.com[/noparse]
Thanks!!