Jump to content

Trouble with mail() on aol emails


refiking

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.