How to parse the content(mail body) of email using java mail API
srikanth savannagari
Greenhorn
Joined: Mar 22, 2011
Posts: 15
posted
0
Hi all,
According to my requirement i have to parse the content(mail body) and subject of the mail, i am able to parse the subject of the mail
can anybody help to get out from this probelm.
I have learned a few things after that though:
- text files can also be included as Strings, not just as InputStreams
- a Multipart with MIME type "multipart/alternative" is used for a body that has both a plain text and an HTML part
Anyway, it may be a problem with the user's client that may simply a) be unable to handle the <select> in the reply, or b) is configured to reply in plain text only.
My Outlook won't even display a <select> element. My first guess seems to be right - the client doesn't support it fully.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
1
Email is the wrong medium for HTML forms - that's what web servers (or servlet containers) are for.
Furthermore -as a bit of advice- never send emails that only contain HTML: there are just too many clients that don't support it, and users that sufficiently dislike it to turn HTML support off in their clients.