Re: MIME - AGAIN - Please Help
| From: | David Otton | Date: | Fri, 16 May 2003 14:06:52 +0000 |
| Subject: | Re: MIME - AGAIN - Please Help | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147893@lists.php.net to get a copy of this message | ||
On Fri, 16 May 2003 09:58:31 -0400, you wrote:
>> Alternatively, after 30 seconds thought, use this function
>>
>> http://www.php.net/manual/sk/function.quoted-printable-decode.php
>
>This works but the line breaks and carriage returns are lost and all the
>text runs together.
Then it's working - it's reconstituting the original, unencoded text
that the email client sent (which wasn't intended to have linebreaks
every 70-odd characters).
"A line break in a text body, independent of what its representation is
following the canonical representation of the data being encoded, must
be represented by a (RFC 822) line break, which is a CRLF sequence, in
the Quoted-Printable encoding."
If you want to reformat your text once it's received, try
http://www.php.net/manual/en/function.wordwrap.php