Results 1 to 2 of 2

Thread: Help in sending PDF doc inline and not as an attachment

  1. #1
    Join Date
    Oct 2009
    Posts
    8

    Default 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

  2. #2
    Join Date
    Mar 2011
    Posts
    1

    Default

    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
  •