Is there any way to convert the MIME type of emails from html to plain text?. I am receiving emails in my java code which are of html mime type. There are lot of html tags in it. I want to remove these tags and get it converted to plain text mime type. Will changing mime type help? or there is another way to do this?
The MIME type is meant to describe what's in the message. It just acts as a label.
So suppose you had a box containing a pair of shoes, and there was a label on the outside which said "Shoes". And suppose that you peeled off that label and replaced it with another label which said "Chocolate". What's in the box now?
It's the same way with MIME types. Changing the MIME type of a message won't magically change the contents of the message. So if you want to get rid of the tags, you're going to have to put together some code which does that.
arun raj singh
Joined: Mar 12, 2012
I got your point. Writing down code for this will surely take long time but have to do this. No other go. Thanks for your valuable input.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com