[plug] PHP Mailing App and message wrap

James Devenish devenish at guild.uwa.edu.au
Wed Oct 29 08:47:47 WST 2003


In message <5.1.0.14.2.20031029072248.00aa7b48 at mail.optusnet.com.au>
on Wed, Oct 29, 2003 at 07:26:11AM +0800, Weirdo wrote:
> The multiline text box in the HTML form has wrap="PHYSICAL" which
> wraps the text appropriately when typed in but the 

You mean you have a <textarea>? The 'wrap' attribute is non-standard, so
"PHYSICAL" can't be expected to work reliably. An alternative that might
work is some browsers is wrap="hard". It's usually better to do this on
the server, though.

> email message sent still doesn't wrap the text in the email.

This is actually the normal meaning of "wrap" -- wrapping is usually a
display feature that allows you to "dynamically fold" lines on a display
device *without* affecting the underlying long lines.

> I just want it to automatically wrap.

Permanent wrapping, by the insertion of linebreaks, is commonly referred
to as "folding". In PHP 4, there is a helper function named "wordwrap"
that would have the effect of folding lines in text/plain e-mail
messages (but not text/html). See <http://www.php.net/wordwrap>


_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list