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

cfmailparam

Guest
May 28, 2008 May 28, 2008
I am fairly new to cfml but I really think I have this right. I have a script I'm trying to use to send a .pdf file as an attachment in an email. When I do it using the developer edition of CF8 it works flawlessly but when uploaded to my server (hosting by GoDaddy, CF7) it throws the error:

Security: The requested template has been denied access to filename.pdf.
The following is the internal exception message: access denied (java.io.FilePermission filename.pdf read)

GoDaddy support is telling me they don't offer script support and that because it's throwing a java error then I must be using java which won't work (I clearly am not using java in my code). Anyone else seen file access issues with the GoDaddy hosting? Or better yet if you have suggestion for a better, affordable CF8 hosting solution, let me know!!

The code I'm using is as simple as I could make it and it's throwing me the error still. I know it has something to do with file access; if I comment out the cfmailparam tag it works fine.

Thanks for any help you may provide.
375
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
LEGEND ,
May 28, 2008 May 28, 2008
LATEST
Talk to another tech at GoDaddy and have them check the Sandbox security settings on your domain.

Hostmysite and Crystaltech offer reasonable CF hosting:

http://www.hostmysite.com/hosting/coldfusion/

http://www.crystaltech.com/coldfusion8.aspx

--
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com


"transpar3nt" <webforumsuser@macromedia.com> wrote in message news:g1l303$g1d$1@forums.macromedia.com...
>I am fairly new to cfml but I really think I have this right. I have a script
> I'm trying to use to send a .pdf file as an attachment in an email. When I do
> it using the developer edition of CF8 it works flawlessly but when uploaded to
> my server (hosting by GoDaddy, CF7) it throws the error:
>
> Security: The requested template has been denied access to filename.pdf.
> The following is the internal exception message: access denied
> (java.io.FilePermission filename.pdf read)
>
> GoDaddy support is telling me they don't offer script support and that because
> it's throwing a java error then I must be using java which won't work (I
> clearly am not using java in my code). Anyone else seen file access issues
> with the GoDaddy hosting? Or better yet if you have suggestion for a better,
> affordable CF8 hosting solution, let me know!!
>
> The code I'm using is as simple as I could make it and it's throwing me the
> error still. I know it has something to do with file access; if I comment out
> the cfmailparam tag it works fine.
>
> Thanks for any help you may provide.
>
> <body>
>
> <cfmail from="testing@mydomain.com" spoolenable="no" to="fake@email.com"
> subject="EMAIL TESTING">
> <cfmailparam file="filename.pdf" type="application/pdf">
>
> This is a test to see if I could get the attachement working in ColdFusion...
>
> </cfmail>
>
> If you can see this the email script probably worked, now I need to go check
> my email!
>
> </body>
> </html>
>
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