You will want to place <cffile action="upload" filefield="attachform"
destination="#GetTempDirectory()#"> Before <cfmail type="HTML" to="[EMAIL PROTECTED]" from="#form.email#" subject="This is a test" server="vccmail.valenciacc.edu"> <cfmailparam file="#cffile.serverDirectory#/#cffile.serverFile#"> </cfmail> On 7/17/07, J.J. Merrick <[EMAIL PROTECTED]> wrote: > Sorry it is enctype="multipart/form-data". > > No asterisks... i think that was due to me copy and pasting in and Google > attempt to do some richtext formatting in bold. > > J.J. > > > On 7/17/07, Will Peavy <[EMAIL PROTECTED]> wrote: > > > > Thanks for all your responses! > > > > J.J. - I put the type in my form, so I have this: > > <form name="form1" method="post" action="contactmailer.cfm" > > type="*multipart*/*form-data*"> > > > > And I'm getting: > > ' Invalid content type: "". CFFILE action="upload" requires forms to use > > enctype="multipart/form-data".' > > > > Where should I put this? <cffile action="upload" filefield="attachform" > > destination="#GetTempDirectory()#"> > > > > > > > > >at first glance you need to make sure that you have > > >type="*multipart*/*form*-data" > > >in your <form> > > > > > >Second you will need to do something with the submitted file form so you > > >would do: > > > > > ><cffile action="upload" filefield="attachform" > > >destination="#GetTempDirectory()#"> > > > > > > > > >Then do the cfmail: > > > > > ><cfmail > > >type="HTML" > > >to="[EMAIL PROTECTED]" > > >from="#form.email#" > > >subject="This is a test" > > >server="vccmail.valenciacc.edu"> > > ><cfmailparam file="#cffile.serverDirectory#/#cffile.serverFile#"> > > ></cfmail> > > > > > >That should do it for you. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2919 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
