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" <[EMAIL PROTECTED]> wrote in message
003d01c20b12$1f461a40$a451fea9@ADSL">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 [EMAIL PROTECTED]  Mon Jun  3 05:27:54 2002
> > Return-Path: <[EMAIL PROTECTED]>
> > Delivered-To: [EMAIL PROTECTED]
> > Received: by flag.blackened.net (Postfix, from userid 65534)
> >  id 1E5B26702; Mon,  3 Jun 2002 05:27:54 -0700 (PDT)
> > To: [EMAIL PROTECTED]
> > From: [EMAIL PROTECTED]
> > Subject: ise-news 018 :: June 2002
> > Status:
> > MIME-Version: 1.0
> > Content-Type: multipart/alternative;
> > boundary="=_f74fc4c7192d1983b9f144709175f8eb"
>
> > Message-Id: <[EMAIL PROTECTED]>
> > 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
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to