Please help me. I have problem with html email. I send email to 3 email address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED]
The email client for yahoo & eudoramail is their web. And for the last destination, the email client is ms outlook. The html email for yahoo & eudoramail are well received. But for the last destination the ms outlook display the wrong result like encrypted text. Below is my code and the result in ms outlook. My code : $s_to = '[EMAIL PROTECTED]'; $s_subject = 'Subject xxx'; $s_headers = "From: [EMAIL PROTECTED]\r\n"; $s_headers .= "MIME-Version: 1.0\r\n"; $s_boundary = uniqid("id"); $s_headers .= "Content-Type: multipart/alternative" . "; boundary = $s_boundary\r\n\r\n"; $s_headers .= "This is a MIME encoded message.\r\n\r\n"; $s_headers .= "--$s_boundary\r\n" . $s_headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $s_headers2 = chunk_split(base64_encode("bla...<b>bla...</b>"bla...")); $s_headers = $s_headers.$s_headers2.'--'.$s_boundary.'--'; @mail ($s_to, $s_subject,"", $s_headers); Result in ms outlook : Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 2773 invoked by uid 252); 22 Oct 2001 23:35:00 -0000 Date: 22 Oct 2001 23:35:00 -0000 Message-ID: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Subject xxx From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary = id3bd4ad2486465 This is a MIME encoded message. --id3bd4ad2486465 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: base64 PGZvbnQgZmFjZT0iVmVyZGEhlbHZldGljYSwgc2Fucy1zZXJpZiIgc2l6ZT0i aXY+PC9mb250C90cj48L3RhYmxlPg== --id3bd4ad2486465-- Regards; Benny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]