Sending email with HTML format
1 posts in topic
Flat View  Flat View

Posted By:   Edvaldo_Araujo
Posted On:   Tuesday, July 8, 2003 07:13 AM

Hi all

I'm using javamail for sending email, but I have noticed that content of the body part is not being sent correctly.
My web server has sent the message attached.

I hope you can help me.



Re: Sending email with HTML format

Posted By:   pratik_shah  
Posted On:   Tuesday, July 15, 2003 07:05 AM

Did you set up datahandler to text/html?

MimeBodyPart mbp4 = new MimeBodyPart();

mbp4.setDataHandler(new DataHandler(htmlText, "text/html"));

//where htmlText is your message string with htmlTags in it

Might be it will solve your problem


About | Sitemap | Contact