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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2917
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to