wordwrap email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
oboedrew
Forum Commoner
Posts: 78
Joined: Fri Feb 20, 2009 1:17 pm

wordwrap email

Post by oboedrew »

One of the books I've been studying lately is Larry Ullman's "PHP 6 and MYSQL 5." On p.292 of this book, he says that when sending email with php, the wordwrap function should be used to limit each line of the email to seventy characters. Is this really necessary? If so, can anyone explain why? Perhaps there's a good reason, but it seems somewhat arbitrary, and no explanation is given in the book.

Thanks,
Drew
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: wordwrap email

Post by Benjamin »

I believe you have to do it in order to conform to the email specifications. I'm not certain that the native mail function doesn't do this automatically however. Chris would probably know more about this as he's the email expert.
Post Reply