Re: Probs with MIME multipart/alternative generated with PEAR mime.php (bug)
| From: | mike | Date: | Tue, 04 Jun 2002 14:10:37 +0000 |
| Subject: | Re: Probs with MIME multipart/alternative generated with PEAR mime.php (bug) | ||
| References: | 1 | Groups: | php.general php.pear.general |
| Request: | Send a blank email to php-general+get-100576@lists.php.net to get a copy of this message | ||
Thanks to a heads up fom Malcolm Dew-Jones on the comp.mail.mime newsgroup,
I belive a bug and resolution has been located in mime.php that addresses
the problem I raised below. It would seem that certain MTA's are chocking
on the line "Content-Type: multipart/alternative;
boundary="=_f74fc4c7192d1983b9f144709175f8eb"" of the header (to long for
7bit encoding?), and trunicating
boundary="=_f74fc4c7192d1983b9f144709175f8eb" so that it sits on the line
below. This results in corrupted headers. To resolve this issue, mime.php
should place the "boundry" on the second line, preceeded with a tab.
Altough I have not had a chance to test this fix with my clients who have
complained of this issue, my rudimentry research shows this to be the case.
Regards,
Michael
"Mike" <dialectics-unlimited@sympatico.ca> wrote in message
news:20020603145946.62672.qmail@pb1.pair.com...
> Hi,
>
> I just don't know enough about MIME encoded email to figure this problem
> out. I'm using a PHP script (mime.php from the Pear library) to automate
> the sending of an HTML newsletter to my subscribers. The email the script
> dishes out has mixed results. Some of my users have the email rendered
fine
> in there client, others receive a corrupted email with the headers
bleading
> into the body.
>
> To further complicate the matter, this is not an issue related to a
> particular email client, as users using identical clients on identical
> platforms have either had proper results or not. My hunch is that the
> problem originates from either my MTA, or the script itself. But, I just
> don't know enough about MIME multipart/alternative to diagnos the problem.
>
> A raw version of the email is below.
>
> Any MIME gurus out there?
>
> Thanks,
>
> mike
>
>
>
> 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
> Subject: ise-news 018 :: June 2002
> MIME-Version: 1.0
> From: ise-news@social-ecology.org
> Status:
> 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
>
> Your email client is unable to display this issue of ise-news. Most
likely
> this is because your email client cannot read HTML. To change your
ise-news
> subscription to the text version, go to:
>
>
http://www.social-ecology.org/ise-news/change.php?id=d963dfb04befe0df8673367
> 050c9ad8d
>
> To unsubscribe, go to:
>
http://www.social-ecology.org/ise-news/unsubscribe.php?id=d963dfb04befe0df86
> 73367050c9ad8d
>
>
> --=_f74fc4c7192d1983b9f144709175f8eb
> Content-Type: text/html; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <HTML>
> <!--
>
> Your email client can not read HTML. To change your ise-news subscription=
> =20
> to the text version, go to:
>
>
http://www.social-ecology.org/ise-news/change.php?id=3Dd963dfb04befe0df8673=
> 367050c9ad8d
>
> To unsubscribe, go to:
http://www.social-ecology.org/ise-news/unsubscribe.p=
> hp?id=3Dd963dfb04befe0df8673367050c9ad8d
>
> Don't worry about anything else below this paragraph.
> It's for those with HTML enabled e-mail clients.
>
> -->
> <HEAD>
> <TITLE>ise-news June 2002</TITLE>
> <META http-equiv=3D"Content-Type" content=3D"text/html;
charset=3Diso-8859=
> -1">
> </HEAD>
>
> <BODY bgcolor=3D"#CCCC99" text=3D"#000000" link=3D"#663300"
vlink=3D"#66330=
> 0" alink=3D"#663300" leftmargin=3D"0" topmargin=3D"0"
> marginwidth=3D"0"
mar=
> ginheight=3D"0">
> <BR><A name=3D"top"></A>
>
> <!-- Body removed for symplicity sake -->
>
>
> </BODY>
> </HTML>
> --=_f74fc4c7192d1983b9f144709175f8eb--
>
>
>
>
>
>
>