You will have to save the file first on the server and then attach it in cfmail...
Your action page should have..
The filepath should have the ohysical path where you want to store the file say for eg;
<CFSET FILEPATH = "D:\MyAttachedFiles\">
<CFFILE ACTION="upload" FILEFIELD="#form.fldAttach
<!--- FILE.SERVERFILE gives the name of the file --->
<cfmail
to = "me@optonline.net"
from = "me@mymail.net"
subject = "test of attach">
#form.name#
<cfmailparam file = "#FILEPATH##FILE.SERVERFIL
</cfmail>
and then you can delete it...
<CFFILE ACTION="DELETE" FILE"#FILEPATH##FILE.SERVE
Let me know
Regards
Hart
Main Topics
Browse All Topics





by: SponDevPosted on 2005-05-31 at 21:33:03ID: 14118850
MORE INFO:
ion: F:\CFusionMX\runtime\serve rs\default \SERVER-IN F\temp\www root-tmp\n eotmp52888 .tmp (The system cannot find the file specified)"
I just got access to the cf lof file for mail and see the error:
"IOException while sending message; nested exception is: java.io.FileNotFoundExcept
As I said before, I can read this file using the <cffile > shown above.