Re: Re: Html email

From: Date: Wed, 24 Oct 2001 23:00:10 +0000
Subject: Re: Re: Html email
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-13675@lists.php.net to get a copy of this message
Hmmmm, try not to set your encoding to base64. I think that Outlooks works find and decodes the base64 stream but this stream is a normal text, so with this in header you make obfuscating. You pass "fox jumps over a lazy dog" and Outlook thinks that is base64, so it decodes to "blablaba.......". -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com -=-=-=--==--==--=-=-=-=-=-=-=-=-=-==--=-=-=-=-==--=-= 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" <benny@konsep.net> wrote in message news:001501c15c1d$7f2f5560$0b01a8c0@ISKAT... > > Please help me. I have problem with html email. I send email to 3 email > address : xxx@yahoo.com, xxx@eudoramail.com and xxx@xxx.com. > > 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 = 'xxx@xxx.com'; > $s_subject = 'Subject xxx'; > $s_headers = "From: me@xxx.com\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: <xxx@xxx.com> > Delivered-To: xxx@xxx.com > Received: (qmail 2773 invoked by uid 252); 22 Oct 2001 23:35:00 -0000 > Date: 22 Oct 2001 23:35:00 -0000 > Message-ID: <20011022233500.27735.qmail@xxx.com> > To: xxx@xxx.com > Subject: Subject xxx > From: mailserver@xxx.com > 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: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#13675) next »