Skip to main content
Inspiring
June 15, 2006
Question

CFDocuments & CFmail Combo

  • June 15, 2006
  • 2 replies
  • 197 views
Is it possible to take a result of a database query, use the cfdocument to
create a PDF, and then attach that pdf to an email?

I know that cfdocument creates a PDF on the fly, but can it (or any other
tag) generate a 'physical' PDF file base on a database result and then
attach it to an email.

I am donating a web site for a pet rescue and would like to capture the
information from an adoption application, generate a PDF, and then send the
attached PDF via email to the rescue.

They are a little leery of working on a computer and would like to make it
as simple as possible for them.

--
Wally Kolcz
Developer / Support
ProjectProofing.com


This topic has been closed for replies.

2 replies

Inspiring
June 15, 2006
Thanks a ton!


Inspiring
June 15, 2006
yes, have a look at the filename attribute for cfdocument. That will
save the generated file to disk. Then use cfmailparam to attach the file
using cfmail.
HTH
--
Tim Carley
www.recfusion.com
info@NOSPAMINGrecfusion.com