Try something like this in the template that processes the form, where
"FileAttachment" is the file field on the form:
<CFIF Len(Form.FileAttachment)>
<CFFILE ACTION="UPLOAD"
FILEFIELD="FileAttachment"
DESTINATION="c:\inetpub\uploads"
NAMECONFLICT="MAKEUNIQUE">
<CFSET UploadedFile = File.ServerDirectory & "\" & File.ServerFile>
<CFELSE>
<CFSET UploadedFile = "">
</CFIF>
<CFIF Len(UploadedFile)>
<CFMAIL TO="[EMAIL PROTECTED]" FROM="[EMAIL PROTECTED]" SUBJECT="The File you
uploaded">
The uploaded file is attached
<CFMAILPARAM FILE="#UploadedFile#">
</CFMAIL>
</CFIF>
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
> -----Original Message-----
> From: Eric Creese [mailto:ecreese@;popmail.com]
> Sent: Tuesday, November 05, 2002 9:38 AM
> To: CF-Talk
> Subject: CFMAIL
>
>
> Ok, I will use CFFILE to load the file to a folder on my
> server. how do I then in the CFMAIL tag look for the file I
> want to attach?
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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