Well it almost worked. I am getting this error:
Security: The requested template has been denied access to
app.pdf.
The following is the internal exception message: access
denied
(java.io.FilePermission app.pdf read)
Here is the code.
<cfdocument format = "PDF" filename = "app.pdf">
<cfoutput>#form.name#<br />
#form.pet#<br />
#form.address#<br />
#form.city#<br />
#form.state#<br />
#form.zip#<br />
#form.phone#<br />
#form.email#<br />
</cfoutput>
</cfdocument>
<cfmail to="wkolcz@rottyrescue.org" from="#form.email#"
subject="Adoption
application" server="********" replyto="#form.email#">
<cfmailparam file="app.pdf" disposition = "attachment">
Here is an application
</cfmail>
</cfif>
I am attempting to take the entries from the page form, use
cfdocument to
generate a PDF, and then email that PDF to the email address.
What am I
missing?
Help!
--
Wally Kolcz
Developer / Support