Solved

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

Posted on 2003-10-23
2
529 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 250 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 250 total points
ID: 9611489
Have you tried using relative path?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now