I'm using Zend_Mail to send emails. Few articles (like first example on this page) have suggested to wrap long lines in message body.
Questions:
Is it necessary to use wordwrap(), in case any of line is larger than 70 characters?
Where does this '70' figure come from?
RFC 2822 and 5322 have a sections called Line Length Limits (2.1.1):
There are two limits that this specification places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.
...
The more conservative 78 character recommendation is to accommodate the many implementations of user interfaces that display these messages which may truncate, or disastrously wrap, the display of more than 78 characters per line, in spite of the fact that such implementations are non-conformant to the intent of this specification
Sounds to me like the real limit is 998 characters and 78 is something that you don't really need to bother with.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With