How do I display POP3 message body properly in a browser? When i use message.writeTO() it displays without line breaks.
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).