>Mo -- > >I use a method very similar to Ray's - creating a new directory for each >email. (I save the emails and files) - so I do something like this within >the cfmail tag > ><cfif DirectoryExists(#variables.AttachmentDirectory#)> ><cfdirectory > directory="#variables.AttachmentDirectory#" > name="dirQuery" > action="LIST"> ><cfloop query="dirQuery"> > <cfmailparam >file="#variables.AttachmentDirectory#/#dirQuery.name#"> ></cfloop> ></cfif> > >That way I can attach all the files the user has uploaded to the >directory... > >If you didn't want to save them - you could easily delete the directory >after email send... > >- Nick
Hi Nick thanks for that, but is what i am doing wrong,, Should i have to go via the directory to send my file with the form data. ? Thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5448 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
