Re: Probs with MIME multipart/alternative generated with PEAR mime.php

From: Date: Mon, 03 Jun 2002 18:32:34 +0000
Subject: Re: Probs with MIME multipart/alternative generated with PEAR mime.php
References: 1 2  Groups: php.general php.pear.general 
Request: Send a blank email to php-general+get-100447@lists.php.net to get a copy of this message
Henry, Thanks for the reply. I tryed tweaking the pearMime.php class to handle correctly with no luck. As a temporary solution, I didtched the Mime.php class and just simpley added my own headers. $hdrs = array( 'MIME-Version' => "1.0", 'From' => $list_sender, 'Subject' => $subject, 'Return-Path' => $list_sender, 'Content-Type' => 'text/html; charset=\"iso-8859-1\"', 'Content-Transfer-Encoding' => "7bit", 'Reply-To' => $list_sender ); $mail = new Mail; $mail->factory('mail'); $mail->send($to_email, $hdrs, $body); For text email, I swapped the "Content-Type" to "text/plain; charset="iso-8859-1"". Fine, but multipart/alternative is much nicer. Michael "Henry" <henry@thejoinery.com.au> wrote in message news:003d01c20b12$1f461a40$a451fea9@ADSL... > i've been doing a bit of mime lately. not with pear but with my own scripts. > > just a suggestion - does it matter that you have the From below the Mime-Version? and also allowed > another CRLF after the first boundary. those CRLF's are a killer! > > btw - i find outlook some help because it bolds the headers. > > what if you changed it to something like: > > > From nobody@flag.blackened.net Mon Jun 3 05:27:54 2002 > > Return-Path: <nobody@flag.blackened.net> > > Delivered-To: ise@flag.blackened.net > > Received: by flag.blackened.net (Postfix, from userid 65534) > > id 1E5B26702; Mon, 3 Jun 2002 05:27:54 -0700 (PDT) > > To: ise@flag.blackened.net > > From: ise-news@social-ecology.org > > Subject: ise-news 018 :: June 2002 > > Status: > > MIME-Version: 1.0 > > Content-Type: multipart/alternative; > > boundary="=_f74fc4c7192d1983b9f144709175f8eb" > > > Message-Id: <20020603122754.1E5B26702@flag.blackened.net> > > Date: Mon, 3 Jun 2002 05:27:54 -0700 (PDT) > > > > --=_f74fc4c7192d1983b9f144709175f8eb > > Content-Type: text/plain; charset="iso-8859-1" > > Content-Transfer-Encoding: 7bit > > > > cheers > Henry > >

« previous php.general (#100447) next »