The email appears correctly in Outlook. Here is my code
$headers = "From: auto-mailer@mydomain.com
";
$headers .= "Reply-To: auto-mailer@mydomain.com
";
$headers .= "MIME-Version: 1.0
";
//$headers .= "Content-Type: text/html; charset=ISO-8859-1
“;
$headers .= “Content-Type: multipart/related; type=“multipart/alternative”;boundary=”----=MIME_BOUNDRY_main_message”
";
$headers .= "X-Sender: auto-mailer@mydomain.com
";
$headers .= "X-Mailer: PHP4
"; //mailer
$headers .= "X-Priority: 3
"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: marc@marcszabo.com; auto-mailer@marcszabo.com
";
$headers .= "This is a multi-part message in MIME format.
";
$headers .= "------=MIME_BOUNDRY_main_message
“;
$headers .= “Content-Type: multipart/alternative; boundary=”----=MIME_BOUNDRY_message_parts”
";
//plaintext section begins
$message = "------=MIME_BOUNDRY_message_parts
";
$message .= "Content-Type: text/plain; charset=“iso-8859-1”
";
$message .= "Content-Transfer-Encoding: quoted-printable
";
$message .= "
";
$message .= stripslashes($title) . "
";
$message .= “Please visit MYDOMAIN.COM”;
$message .= "
";
//html section begins
$message .= "------=MIME_BOUNDRY_message_parts
";
$message .= "Content-Type: text/html;
charset=“iso-8859-1”
";
$message .= "Content-Transfer-Encoding: base64
";
$message .= chunk_split(base64_encode($emailbody));
$message .= "
";
$message .= "------=MIME_BOUNDRY_message_parts–
";
$message .= "
";
$message .= "------=MIME_BOUNDRY_main_message–
";
My email body is one string html code cut from dreamweaver of everything between
and
with all quotations escaped as "
I forget where I actually hacked up this code from, but I had to comment out
//$headers .= "Content-Type: text/html; charset=ISO-8859-1
";
or the email that comes in is a bunch of gibberish in Yahoo (but not blank), but still comes up properly in Outlook.
Please help.
Ron R.