I need some help with my Mail script. I've found out that local addresses most fo time time do not print the headers in the correct place:
Like a normal email, except with my script, for some strange reason, on some accounts I get:
All that is displayed in the message body and the other field are all blank. Except the to field. Does anyone have a solution? I've used other scripts and they work perfectly fine but this is really confusing me. I've tried comparing other script seeing what is happening but I can find a solution.
Sender: Nobody <email@example.com>
Date: Mon, 23 Apr 2001 08:55:30 -0400
If you download my script: http://scripts.codingclick.com/MyMail then the file send.php is the one in question as it sends the message, its to long to post here.
EDIT: The header are:
and the mail is:
$headers = "From: $fromemail\n" .
"Reply-To: $fromemail\n" .
mail($address, $subject, $text, $headers);
THanks for your help,