Hello, mail has a 5th param, that one works, like: mail ("[EMAIL PROTECTED]", "Subject", "Body", "From: [EMAIL PROTECTED]", "[EMAIL PROTECTED]");
will make the mail come from [EMAIL PROTECTED] Derick On Fri, 14 Dec 2001, Sander Roobol wrote: > > > The "from" in your mail header therefore comes from your mail transfer > > > agent and has little to do with PHP. therefore you have to look for > > > this problem there. > > > > I don't understand this. I can set headers in fourth argument to mail > > function so I can send > > mail("[EMAIL PROTECTED]","Hello","msgbody","From:spammer") > > If user does not set 4th argumment mail is sent with from > [EMAIL PROTECTED] > > This is not a bug in PHP. You should check the settings of your mail > transfer agent (sendmail, probably). > > Sander > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]