Hello- I've always had this type of mail statement work for me: mail($to, $Subject, $Body, "From: $From\r\nContent-Type: text/html; charset=iso-8859-1");
My guess is that Outlook doesnt know what to do with the header you're sending it (maybe too much info for outlook??)... Other than that.... I've got no idea =) -- Jason Wood Chief Technology Officer Expressive Tek, Inc. 407 Kehrs Mill Road Ballwin, MO 63011 Phone 636.256.1362 www.expressivetek.com "Benny" <[EMAIL PROTECTED]> wrote in message 001501c15c1d$7f2f5560$0b01a8c0@ISKAT">news:001501c15c1d$7f2f5560$0b01a8c0@ISKAT... > > 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 Database 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]