Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2003-10-23
2
536 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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