Reply to Re: mail() - message lines <= 70 chars

Your name:

Reply:


Posted by Matthew on 11/22/07 17:42

Rik Wasmus emailed this:
> 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.

Thanks Rik. I'll just add a newline every 70 chars then.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация