How do I display POP3 message body properly in a browser? When i use message.writeTO() it displays without line breaks.

Christopher Koenigsberg

Of course an HTML browser is rendering HTML, meaning that it is ignoring whitespace, including newlines.

You could try enclosing your text in a "<pre>" element. Or you could insert the HTML for linebreaks yourself ("<br>" or else enclose in "<p>" elements).

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact