How to Convert mail body into plain text Format???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amit_R
Posted On:   Tuesday, August 6, 2002 08:57 AM

i'm writing a program where i'm scanning the mailbox for mails comming from particular id. and reading the contents which are in predefined format for further processing. but if Sender sends mail in HTML format rather than plain text format, i'm getting html tags in mail body. is there a way in java mail API to read mails in plain text format. Please help need to deploy this ASAP.

Re: How to Convert mail body into plain text Format???

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, August 6, 2002 11:27 AM

If the message has been constructed with MIME multipart alternative parts (multiple versions of the same content, just formatted differently), then probably one part is html and another part is the same content in plain text, already.

About | Sitemap | Contact