I tried posting this in stackoverflow, but didn't get any (real good) answers, maybe it's more on this side of the aisle.
I have a problem on a server for which the additional headers get ignored.
Code to reproduce:
$toEmail="customer@domain.com";
$subject="subject";
$message="this is a message";
$fromEmail="Customer Service <customerservice@domain.net>";
$replyToEmail="Customer Service <customerservice@domain.net>";
mail("$toEmail", $subject, $message, "FROM: $fromEmail","-f$replyToEmail");
echo "mail sent";
The from address ends up being: customerservice@domain.net.prod3.domain.net
prod3.domain.net is the name of the server, so it concatenates the from address and the machine name.
Server is LAMP running Centos5.
Thanks!
Cam