* John Taylor-Johnston <[EMAIL PROTECTED]>:
> Folks are complaining mail arrives and text will not wrap. $message 
> comes directly from a textarea. Old mail readers, I guess?

Not necessarily old. Many of us use text-based mail readers, where
tradition and usability dictate line lengths of 72-80 characters. Also,
many mail user agents render text/plain without wrapping lines (or make
line wrapping optional).

> How can I make their life better and make the text wrap?

Yep. Investigate http://php.net/wordwrap:

> mail("[EMAIL PROTECTED]", stripslashes($subject), stripslashes($message), 
> "Return-Path: <[EMAIL PROTECTED]>\r\nFrom: \"[foo] foo\" <[EMAIL 
> PROTECTED]>\r\nbcc: 
> $bcc \r\nReply-To: [EMAIL PROTECTED] \r\n"."X-Mailer: PHP/" . phpversion());

Make "stripslashes($message)" into 
"wordwrap(stripslashes($message), 72)".

-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to