Posted by Rik Wasmus on 11/22/07 17:26
On Thu, 22 Nov 2007 18:13:52 +0100, Matthew <matthew@spamkiller.com> wrote:
> John Dunlop emailed this:
>> Matthew:
>>> The manual page for PHP's mail() function (URL below) says that for the
>>> message (IE. email body) "Each line should be separated with a LF (\n).
>> Should be CRLF.
>> http://www.apps.ietf.org/rfc/rfc2822.html#sec-2.1
>>
>>> Lines should not be larger than 70 characters."
>> Should be 78.
>> http://www.apps.ietf.org/rfc/rfc2822.html#sec-2.1.1
>
> Why do the long lines of 100 chars work for me anyway?
1. PHP doesn't check it: you, as the programmer, should take care of it.
2. Most email clients/servers ar robust enough to handle more characters.
The fact that almost all can is still not a reason to let the number of
characters slide though.
--
Rik Wasmus
[Back to original message]
|