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!

JavaMail - HTML with images - Images show up as both inline and attachment

843834Jul 19 2010 — edited Jul 19 2010
Hi,

I am writing a program to send email which have
1. HTML template which references images via the content-id mechanism
2. A PDF document

The mails are being rendered properly in Outlook, Gmail and Yahoo (the images show as inline and the PDF as attachment), however in hotmail the images are showing up as both inline and as attachment.

When creating the email using JavaMail I am using the following structure
...multipart/mixed
......multipart/related
..........HTML Code
..........Images
......PDF file (as a MimeBodyPart)

Is there something which I missed here or do I need to live with the way hotmail renders the email.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2010
Added on Jul 19 2010
2 comments
1,025 views