-
Mar 28th, 2011, 08:00 AM
#1
Help in sending PDF doc inline and not as an attachment
Hi
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>"
msgHelper.setText(text, true);
ClassPathResource resource = new ClassPathResource("mydoc.pdf");
msgHelper.addInline("cid:pdfdoc", resource);
This doesnt seem to work.
Wondering if anyone had worked on a similar requirement, or know how to get this working.
Thanks
-
Jun 16th, 2011, 04:26 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules