Mar 28th, 2011, 08:00 AM
Help in sending PDF doc inline and not as an attachment
I'm trying to send an email with pdf content inline (and not as an attachment). I am using MimeMessageHelper.
I am trying to use <iframe>:
String text="<html><body><iframe src='cid:pdfdoc'/></body></html>"
ClassPathResource resource = new ClassPathResource("mydoc.pdf");
This doesnt seem to work.
Wondering if anyone had worked on a similar requirement, or know how to get this working.
Jun 16th, 2011, 04:26 AM
You could export your pdf file as "image" and then send that file as inline attachment which can be done in Mozilla Thunderbird and I am sure you can in Outlook as well.