JavaMail - HTML with images - Images show up as both inline and attachment
843834Jul 19 2010 — edited Jul 19 2010Hi,
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.