|  | Posted by Beauregard T. Shagnasty on 06/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] |