Re: Mail triple linefeed
| From: | Stefan Walk | Date: | Wed, 25 Feb 2004 11:51:12 +0000 |
| Subject: | Re: Mail triple linefeed | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25862@lists.php.net to get a copy of this message | ||
On Wed, Feb 25, 2004 at 10:32:57PM +1100, Aidan Lister wrote:
> I'm happy for someone to tell me it's a problem my side, if not could it
> please be fixed, thanks!
It's a problem with Mail - at least with the php-mail() version, i
didn't check the other ones. prepareHeaders() appends an additional crlf
to terminate the headers, but mail()'s third parameter expects just a
crlf-separated list of headers, so an additional crlf results in having
an additional blank line there.
But I think that is not only a bug in the pear package - the behaviour
of mail() could be better imo (as in "be liberal in what you accept and
strict in what you output") - blank lines should be discarded, as they
don't make sense in the "additional_headers" context.
But for now, i'd say you should open a bug for the pear package.
--
Regards,
Stefan Walk
<swalk@prp.physik.tu-darmstadt.de>