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!

HTML MAIL WITH ATTACHMENTS

843830Apr 12 2006 — edited Apr 12 2006
I AM SUCESSFULLY SENDING MAIL HTML AND PLAIN MAIL WITH ATTACHMENTS ,

MY PROBLEM IS I CANT SEND A HTML FORMATTED MAIL WITH AN ATTACHMENT, WHILE ATTACHING I CANT SEND CONTENT TYPE AS
"TEXT/HTML" , SO THE MAIL IS COMING WITH ATTACHMENT BUT HTML CODES ARE SHOWN IN MAILS AS PLAIN TEXT.
WHILE I SET CONTENT TYPE AS "MULTIPART/MIXED" ALSO THE SAME PROBLEM.

Thanks in advance . Please HELP
msg.setContent(mp); //MP IS A multipart with attachements added.
Transport.send(msg); // msg is MimeMessage with all params set
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2006
Added on Apr 12 2006
1 comment
153 views