How to receive HTML email using JAVA Mail API?
843830May 27 2002 — edited May 27 2002Hello!
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.