Skip to main content
June 12, 2009
Question

Emailing a pdf

  • June 12, 2009
  • 2 replies
  • 1044 views

Hello.  How do I email a pdf that generates dynamically?  I have it displaying on the screen based on data it pulls but now I want to take that actual document and send it automatically with cfmail.

Thanks,


Andy

    This topic has been closed for replies.

    2 replies

    June 15, 2009

    Captain Stupid here.  Sorry to waste time.  I was adding src= into the tag when all I needed was filename=.

    Working now.  Sorry again.

    ilssac
    Inspiring
    June 12, 2009

    Use the functionality of the features you are using to generate the dynamic PDF and write it as a file.

    Use the <cfmailparam....> functionality to create an e-mail attachment of that file.

    The details of all of that is fairly well covered in the documentation.

    June 12, 2009

    <cfdocument> can?

    Perhaps I should try src and filename.

    I was reviewing the tag in livedocs and must have missed it.

    Dileep_NR
    Inspiring
    June 15, 2009

    No, Firstly you can create PDF file and attach that file with mail.