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

CFmail / CFDocument combo problem

LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

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


TOPICS
Advanced techniques

Views

489

Translate

Translate

Report

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
LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

I am guessing the issue is where the app.pdf is put once it is created.
How do I define where is needs to be created? I am on a shared hosting.


Votes

Translate

Translate

Report

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
LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

In my local hosted testing, it created the PDF in my site folder, so I am
confused why there is an issue on a hosted version.

"Wally Kolcz" <wkolcz@projectproofing.com> wrote in message
news:e6safc$8n$1@forums.macromedia.com...
>I am guessing the issue is where the app.pdf is put once it is created.
> How do I define where is needs to be created? I am on a shared hosting.
>


Votes

Translate

Translate

Report

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
LEGEND ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

LATEST
Nevermind..got it to work. Had to specify the exact path to the file.


Votes

Translate

Translate

Report

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
Documentation