When receiving an email from my
java application I get the text in perfect condition (html) but the jpg (which is the logo) is attached to email and not embedded to it.
I�m using this:
//picture
MimeBodyPart mbp2 = new MimeBodyPart();
FileDataSource fds = new FileDataSource("logo.jpg");
mbp2.setFileName(fds.getName());
mbp2.setDataHandler(new DataHandler(fds));
mbp2.setHeader("Content-ID","<23abc@pc27>");
mp.addBodyPart(mbp2);
I really don't know what is the mbp2.setHeader("Content-ID","<23abc@pc27>"); stands for.
does anyone have any idea?