I am trying to send an HTML email to Outlook but it shows up as text with all the headers at the top.
Here is the code I'm using:
$to = "email@email.com";
$subject = $subject;
$message = $html;
$headers = "From: ".$email."\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);
I composed an HTML email using Outlook and I don't see much difference in the headers.