macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: CFMAIL w/attachment

Subject: Re: CFMAIL w/attachment
From: "Avatar"
Date: Fri, 17 Aug 2007 17:58:23 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Yes you should use the cfmailparam tag to send the file

 <CFMAILPARAM FILE="#form.file#">


 It looks as though you may need to upload the file first before sending.
 <cffile action="upload" destination="c:\attachmentsfolder\" 
nameconflict="MAKEUNIQUE" fileField="form.file">

 then you'd use the mailparam like so:
 <CFMAILPARAM 
FILE="c:\attachmentsfolder\#cffile.ServerFileName#.#cffile.ServerFileExt#">

 the cffile. scope will be available after the <cffile action="upload" takes 
place


<Prev in Thread] Current Thread [Next in Thread>