How to display a PLAIN TEXT email in HTML format?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rohan_Chhatre
Posted On:   Tuesday, January 21, 2003 10:19 PM

How to display a PLAIN TEXT email in HTML format..
such that the links in the text will be active.

Re: How to display a PLAIN TEXT email in HTML format?

Posted By:   Anthony_Hong  
Posted On:   Friday, February 28, 2003 12:02 AM

Use MimeBodyPart.setContent(Message message, String contentType);
MimeBodyPart body = new MimeBodyPart();
body.setContent(message, "text/html");

You mail text is in html format now.

Re: How to display a PLAIN TEXT email in HTML format?

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, January 22, 2003 07:03 AM

I guess you will have to go through the plain text of the body document, find things that you consider to be worthy of turning into links, and then changing them into actual links, in your HTML version of the body document.

About | Sitemap | Contact