Re: wrapping text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>"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@xxxxxx", stripslashes($subject), stripslashes($message),
"Return-Path: <info@xxxxxx>\r\nFrom: \"[foo] foo\" <info@xxxxxx>\r\nbcc:
$bcc \r\nReply-To: info@xxxxxx \r\n"."X-Mailer: PHP/" . phpversion());


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


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux