Mike, You need to write the uploaded file to disk before you can attach it using CFMAIL. The process should go like this:
1) User fills in form and selects file, clicks submit. 2) Use CFFILE to write file to web server harddrive. 3) Use CFMAIL to send the file using #cffile.serverfile# as the attachment. 4) Use CFFILE to delete the file from the server using the same var as above. HTH, Jeff Garza Webmaster/Lead Developer Spectrum Astro, Inc. [EMAIL PROTECTED] -----Original Message----- From: Mike Tangorre To: CF-Talk Sent: 10/2/01 7:14 PM Subject: CFMAIL and Attachments Hello Everyone, I am having problems sending mail with attachments. I have a user fill out a form, and on the form is an input type of "file" where the suer browses to select the file they wish to send. When they click submit, I process the form and mail its contents to someone. In the cfmail tag i am using cfmailparam and i specify the #form.ufile# as the FILE to send... am I doing something wrong? When the email arrives, attached is a TEMP file which when opened in notepad is the right file, but it is not the correct file type... for instance, I email a word doc, and it comes in as a TEMP file all garbled. Any help would be appreciated. Mike =================================== Michael T. Tangorre Web Applications Developer Alfred University Webteam Slave :-) [EMAIL PROTECTED] AIM: CrazyFlash4=================================== "Friends don't let friends code before coffee!"=================================== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.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

