This works for me, it's rudimentary and wide-open but I use it when my mail server is down. It sends the mail and blind copies me for my records. Hope it helps.
You need to collect the 4 variables from your form and post them to this script.
<?php
/* script written to send generic emails. requires to, from, subject and body
Change Log:
AWT 13Dec2000 created to send mails from the server
*/
$hdr = "From:" . $from . "\nbcc:" . $from . "\nbcc:alan@bootbag.com";
mail($to,$subject,$body,$hdr);
?>
<div align="center"><center>
<table border="0" cellpadding="3" cellspacing="6" width="670">
<tr>
<td>Thanks, that has been mailed and blind-copied to you</td>
</tr>
<tr><td>
<?php echo "To: $to";
echo "<br>From: $from";
echo "<br>Subject: $subject";
echo "<br>Body: $body";
?>
</td></tr>
</table>
</center></div>