Hi,
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:
Subject: Here
From: Here
etc...
---------------------------------
Message here
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.Code:Subject: test From: webmaster@codingclick.com Reply-To: webmaster@codingclick.com Return-Path: <webmaster@codingclick.com> Message-Id: <E14rfsI-0003xv-00@host3.hrwebservices.net> Sender: Nobody <nobody@host3.hrwebservices.net> Date: Mon, 23 Apr 2001 08:55:30 -0400 Message Here
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:Code:$headers = "From: $fromemail\n" . "Reply-To: $fromemail\n" . "Return-Path: <$fromemail>\n";
End EDITCode:mail($address, $subject, $text, $headers);
THanks for your help,
Peter





Bookmarks