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 protected]\n"; $headers .="Reply-To: [email protected]\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 protected] or better yet my name. Link to comment https://forums.phpfreaks.com/topic/53434-php-email-headers/ 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. Link to comment https://forums.phpfreaks.com/topic/53434-php-email-headers/#findComment-264021 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 Link to comment https://forums.phpfreaks.com/topic/53434-php-email-headers/#findComment-264050 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. Link to comment https://forums.phpfreaks.com/topic/53434-php-email-headers/#findComment-264053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.