Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to receive HTML email using JAVA Mail API?

843830May 27 2002 — edited May 27 2002
Hello!
I am developing WEB Mail System. There is a little problem. I am unable to receive mail in HTML format. The mail is being received in only text format currently. What method do i need to use to achieve this functionality currently i am using

MimeMessage message = mail.getMessage();
if(message.isMimeType("text/plain")){
String str_message_body = message.getContent().toString();
}
else
Multipart multipart = (Multipart)message .getContent();

Kindly advise me regarding that because i am in a state of fix right now and unable to proceed further.

I will really appreciate a prompt response from you.


Regards,

Burhan Ramay.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2002
Added on May 27 2002
1 comment
153 views