Announcement Announcement Module
Collapse
No announcement yet.
Help in sending PDF doc inline and not as an attachment Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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='ciddfdoc'/></body></html>"
    msgHelper.setText(text, true);
    ClassPathResource resource = new ClassPathResource("mydoc.pdf");
    msgHelper.addInline("ciddfdoc", resource);


    This doesnt seem to work.
    Wondering if anyone had worked on a similar requirement, or know how to get this working.

    Thanks

  • #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.

    Comment

    Working...
    X