[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CFMAILPARAM:  Resource not found.... WHY?????

Posted on 2003-10-23
2
Medium Priority
?
560 Views
Last Modified: 2013-12-24
I am trying send a HTML email reply with a PDF attachment.  It is giving me the error below.  But the file is absolutely there and is matching up just fine.  Does anyone have any experience with this or know of a guarenteed way to attach a file.

Thanks,
Jeff




The resource E:\Inetpub\ASiM\certificates\test.pdf was not found.  
The root cause was: .  
 
The error occurred in E:\Inetpub\ASiM\web\certificate.cfm: line 16
 
14 :
15 :   <CFMAIL QUERY="getProgram" SUBJECT="ASiM CME Certificate" TO="""#VisitorFirstName# #VisitorLastName#"" <#VisitorEmail#>" FROM="""ASiM CME Certification"" <cme@jhasim.com>" TYPE="HTML">
16 :   <CFMAILPARAM FILE="E:\Inetpub\ASiM\certificates\test.pdf">
17 :   <!--- <CFMAILPARAM FILE="E:\Inetpub\ASiM\certificates\cert_#getProgram.VisitorLastName#_#getProgram.CMEResultsID#.pdf"> --->
18 :     <HTML>

 
0
Comment
Question by:jeffmace
2 Comments
 
LVL 1

Accepted Solution

by:
kjuliff earned 1000 total points
ID: 9609518
I think it is because you are using the query wothin CFMAIL. I am not sure how the parameters stack. The following SHOULD work.

<CFLOOP  query = "getProgram">
<cfset visitoremail=<whatever>
<cfset from=<whatever>

<cfmail
"SUBJECT="ASiM CME Certificate"
TO="#visitoremail#
FROM#from#"
TYPE="HTML">



<CFMAILPARAM FILE="E:\Inetpub\ASiM\certificates\test.pdf">

>

</cfmail>
</cfloop>
0
 
LVL 2

Assisted Solution

by:Crazee
Crazee earned 1000 total points
ID: 9611489
Have you tried using relative path?
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question