Re: wrapping text

From: Date: Sun, 14 Aug 2005 06:28:38 +0000
Subject: Re: wrapping text
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-220588@lists.php.net to get a copy of this message
"wordwrap(stripslashes($message), 72)".
Thanks! Another reason why I gave up on Perl :) A fucntion made already since 4.0.2.! :) Matthew Weier O'Phinney wrote:
Folks are complaining mail arrives and text will not wrap. $message comes directly from a textarea. Old mail readers, I guess?
Yep. Investigate http://php.net/wordwrap:
mail("info@foo.ca", stripslashes($subject), stripslashes($message), "Return-Path: <info@foo.ca>\r\nFrom: \"[foo] foo\" <info@foo.ca>\r\nbcc: $bcc \r\nReply-To: info@foo.ca \r\n"."X-Mailer: PHP/" . phpversion());
Make "stripslashes($message)" into "wordwrap(stripslashes($message), 72)".


« previous php.general (#220588) next »