Here is my code:
<? $Name= $HTTP_POST_VARS['nameField'];
$date= $HTTP_POST_VARS['dateField'];
$hardwarechk= $HTTP_POST_VARS['chkHardware'];
$softwarechk= $HTTP_POST_VARS['chkSoftware'];
$cableschk= $HTTP_POST_VARS['chkCables'];
$otherchk= $HTTP_POST_VARS['chkOther'];
$pirorityslct= $HTTP_POST_VARS['slctPiority'];
$deptslct= $HTTP_POST_VARS['slctDept'];
$commenttxt= $HTTP_POST_VARS['txtComments'];
$toaddress="ahadali79@hotmail.com";
$subject = "Information Systems Forms";
$mailcontent = 'Name: '.$Name."\n"
'Date: '.$date."\n"
'Department :'.$deptslct."\n"
'Comments: '.$commenttxt.;
mail($toaddress, $subject, $mailcontent,);
?>
<html>
<head>
<title>Bob's Auto Parts - Feedback Submitted</title>
</head>
<body>
<h1>Feedback submitted</h1>
<p>Your feedback has been sent.</p>
</body>
</html>