DasHaas Posted May 29, 2007 Share Posted May 29, 2007 I cant get the From email address to pass through to the email recipients. The emails keep showing my domain as the sender. Any help on this would be greatly appreciated. $headers .="From: email@myserver.com\n"; $headers .="Reply-To: reply@myservers.com\n"; mail($email, $msgsubject, $msgbody, $headers); As mentioned above the recipients see myserver.cm as the sender, I would like to change that to email@myserver.com or better yet my name. Quote Link to comment Share on other sites More sharing options...
per1os Posted May 29, 2007 Share Posted May 29, 2007 Headers need to end in \r\n not just \n also try using the -f functionality which you can read up on at www.php.net/mail. Quote Link to comment Share on other sites More sharing options...
DasHaas Posted May 29, 2007 Author Share Posted May 29, 2007 no dice dude, I tried adding the \r\n but it still wont change the from address. I looked at the link you sent me and it seems like there are several ways to code the from header. I am not sure which one i should be using Quote Link to comment Share on other sites More sharing options...
per1os Posted May 29, 2007 Share Posted May 29, 2007 Try them all, see which works for you. Some work for others while some do not. Trial and error is sometimes the only way to do something. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.