<?php
if (isset($submit)) {
$sendto = "to@domain.com";
$subject = "displays in the receiving email subject area";
$message = "$sender_name\n";
$message .= "$senders_email\n";
$message .= "\n";
$message .= "Your contents of the email\n";
$header = "From: [email]from@domain.com[/email]";
mail($sendto,$subject,$message,$header);
} else {
?>
Your form goes here, Use "submit" for the button name
<?php
}
?>