refiking Posted March 3, 2010 Share Posted March 3, 2010 So, I have a simple email function that works for every email except aol, which makes no sense to me. What do I need to change to make sure it works with EVERY email carrier? Here's my current code: function sendemail ($to, $from, $subject, $message){ $headers = "From: " . $from . "\r\n"; $headers .= "Reply-To: ". $from . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; mail( $to, $subject, $message, $headers ); } P.S. I also tried to just remove the headers and that still didn't send the email to the aol accounts. Link to comment https://forums.phpfreaks.com/topic/194012-trouble-with-mail-on-aol-emails/ Share on other sites More sharing options...
trq Posted March 4, 2010 Share Posted March 4, 2010 Is the From header being set to a valid email address on your domain? Link to comment https://forums.phpfreaks.com/topic/194012-trouble-with-mail-on-aol-emails/#findComment-1021154 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.