Well it looks like Ben and JJ beat me to it this morning.....no coffee here yet. ;) Looks like they've got it covered, Ben's blog is a great resource, or at least has been for me ...but don't tell him that <wink> don't want to give him a big head ;)
Bob > -----Original Message----- > From: Will Peavy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 17, 2007 7:53 AM > To: CF-Newbie > Subject: Re: Attach a file to an email > > >The file has to exist on the server before Coldfusion can attach it, how > are > >you handling the upload portion of what you're trying to do? Some code > would > >be helpful in trying to offer a solution. > > > >Bob > > > >> > > Hi Bob, thanks for the reply. > > Here is what I have in orderform_west1.cfm to handle the upload: > > <form name="form1" method="post" action="contactmailer.cfm"> > <label for="file">Upload file:</label> > <input type="file" name="attachFile" id="attachFile"/> > <input type="submit" name="Submit" value="Submit" /> > </form> > > And here is what I have in contactmailer.cfm: > > <cfmail > type="HTML" > to="[EMAIL PROTECTED]" > from="#form.email#" > subject="This is a test" > server="vccmail.valenciacc.edu"> > <cfmailparam file="#form.attachFile#"> > </cfmail> > > What do you think is the best way of getting the file from the user's > computer up to the server? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2914 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
