vicodin Posted September 4, 2008 Share Posted September 4, 2008 The From: is not working. Any idea anyone? $from = "[email protected]"; $headers = "From: {$from}\r\n"; mail($to,$subject,$message,$headers); Link to comment https://forums.phpfreaks.com/topic/122661-mail-headers/ Share on other sites More sharing options...
tibberous Posted September 4, 2008 Share Posted September 4, 2008 What is it sending from? Link to comment https://forums.phpfreaks.com/topic/122661-mail-headers/#findComment-633371 Share on other sites More sharing options...
vicodin Posted September 4, 2008 Author Share Posted September 4, 2008 my smtp server... it just comes with a basic stamp from my smtp server... i want it to say what im typing in the $from Link to comment https://forums.phpfreaks.com/topic/122661-mail-headers/#findComment-633372 Share on other sites More sharing options...
burn1337 Posted September 4, 2008 Share Posted September 4, 2008 take out your {} and it should work, also maybe even take out \r\n (not sure) useing the double quotes, you can just type in the variable without needing anything to concat the string. Link to comment https://forums.phpfreaks.com/topic/122661-mail-headers/#findComment-633509 Share on other sites More sharing options...
JasonLewis Posted September 4, 2008 Share Posted September 4, 2008 Some hosts don't allow fake e-mail address as a from address. So if that is just a filler then excuse this message, but take it into account otherwise. Link to comment https://forums.phpfreaks.com/topic/122661-mail-headers/#findComment-633513 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.