<?php
//code goes here, this is commented out
?>
For a contact us form, then I am judging you getting the form details emailed to you once submitted, so do this:
<?php
$to = "your@email.address";
$subject = "Your Subject"; // or if posted from form $subject = $_POST['subject'];
$message = "Message"; //or if posted from form $message = $_POST['message'];
$send = mail($to, $subject, $message);
if($send) {
echo 'Sent Successfully';
}
else {
echo "error sending";
}
?>
hope this helped