Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Emailing a pdf

Participant ,
Jun 12, 2009 Jun 12, 2009

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

900
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 12, 2009 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 12, 2009 Jun 12, 2009

<cfdocument> can?

Perhaps I should try src and filename.

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 14, 2009 Jun 14, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 15, 2009 Jun 15, 2009

Can you give me a little more detail here?  I am looking through the forums and livedocs and am not coming up with anything promising.  I'll keep looking but a nudge in the right direction could help me out.


Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 16, 2009 Jun 16, 2009

Use cfdocument with the filename attribute to save the PDF to disk and

cfmailparam with the file attribute to read the file from disk and

send it via e-mail.

Mack

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 16, 2009 Jun 16, 2009
LATEST

Yep already figured this one out yesterday.  I used filename and then call it later and send as an attachment using cfparam.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 15, 2009 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources