Generic Form Processing / Emailing In ColdFusion

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Generic Form Processing Test</title>
</head>
<body>
 
	<cfoutput>
 
		<form
			action="./process_email.cfm"
			method="post"
			enctype="multipart/form-data">
 
			<!--- Hidden meta-data values. --->
			<input type="hidden" name="to_email" value="stacy@college-cuties.com" />
			<input type="hidden" name="from_email" value="kim@college-cuties.com" />
			<input type="hidden" name="subject" value="Generic Email Processing Test Email" />
			<input type="hidden" name="success_url" value="process_email_success.cfm" />
			<input type="hidden" name="temp_directory" value="#GetDirectoryFromPath( GetCurrentTemplatePath() )#files\" />
			<input type="hidden" name="field_list" value="FirstName, LastName, ContactType, Comments" />
 
			<dl>
				<dt>
					First Name:
				</dt>
				<dd>
					<input type="text" name="FirstName" value="" />
				</dd>
 
				<dt>
					Last Name:
				</dt>
				<dd>
					<input type="text" name="LastName" value="" />
				</dd>
 
				<dt>
					Contact Type:
				</dt>
				<dd>
					<input type="radio" name="ContactType" value="Friend" /> Friend<br />
					<input type="radio" name="ContactType" value="Co-Worker" /> Co-Worker<br />
				</dd>
 
				<dt>
					Comment:
				</dt>
				<dd>
					<textarea name="Comments" rows="5" cols="40"></textarea>
				</dd>
 
				<dt>
					Resume:
				</dt>
				<dd>
					<input type="file" name="resume" />
				</dd>
 
				<dt>
					Additional Doc.:
				</dt>
				<dd>
					<input type="file" name="add_doc" />
				</dd>
 
			</dl>
 
			<input type="submit" value="Test Email Processing" />
 
		</form>
 
	</cfoutput>
 
</body>
</html>

For Cut-and-Paste