You are here: Re: Preformatted text with wrap « HTML « IT news, forums, messages
Re: Preformatted text with wrap

Posted by Beauregard T. Shagnasty on 10/21/53 11:19

Dan wrote:
> Joseph Misko wrote:
>
>> I am using MySQL to serve plain text email newsletters using PHP.
>> I have the text of the emails stored, and I thought the <pre> tag
>> would be my answer. However, that doesn't break at the page
>> width. Basically, I need a tag or option that allows me to keep
>> the paragraph and linebreak formatting, but will wrap and not
>> produce lines a thousand characters long.
>
> If the plain text email was properly formatted to begin with, there
> wouldn't be "lines a thousand characters long"; RFC 2822 imposes
> an absolute maximum line length of 998 characters, but strongly
> suggests keeping lines to 78 characters at the most unless there's
> a really good reason to do otherwise. If it conforms to this, it
> should display well in most normal screen resolutions within <PRE>
> elements.

If the email is to be plain text, there should be no HTML elements at
all, including <pre>, as I see it...

> http://mailformat.dan.info/body/linelength.html

My sites all have contact forms that gather plain text - in long lines
until Return is pressed, send it via PHP as a plain text email, and
the lines wrap normally, according to the receiving email client.

--
-bts
-This space intentionally left blank.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация