Thanks for the help.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:19 PM
To: CF-Talk
Subject: RE: File Attachments to Email
You have to use cffile to save the file to the server:
<cffile action="UPLOAD" filefield="attachFile" destination="c:\"
nameconflict="MAKEUNIQUE">
After saving the file, a number of #cffile.*# variables are available to
you. Of importance is #cffile.serverFile#, which is the name of the
file once saved to the server (in case the name had to be changed to be
unique). Use this in cfmail:
<cfmail from="#FromEmail#" to="#E_Mail#" subject="#Subject#"
query="StaffList" mimeattach="#cffile.serverFile#">
---
Billy Cravens
-----Original Message-----
From: Rollo, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:01 PM
To: CF-Talk
Subject: File Attachments to Email
Hi All. 1st post. I gather email info (subject, message, etc.) on a
form and use
<input type="file" name="AttachFile" size="40">
to get the path of a file attachment (if there is one). Example of the
value in AttachFile is C:\compl.txt When I pass this info on to the
next module and use
<cfmail from="#FromEmail#" to="#E_Mail#" subject="#Subject#"
query="StaffList" mimeattach="#AttachFile#">
CF looks for the file compl.txt on the server C drive and thus I keep
getting
Cannot attach 'C:\compl.txt' to the mail message. The file does not
exist.
Can anyone tell me how I can attach files from my (users) PCs
and not have the code go to the server to try and find the file. Many
thanks in advance for any help.
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists