Thatis an example from PHP.net - this is not from me.t
<?php
$to = '' // email address where to send
$subject = '' // Subject matter captured from form
$message = '' // captured from form
mail($to, $subject, $message); // Sends the message
?>