<HTML>
<HEAD>
<TITLE>mail</TITLE>
</HEAD>
<BODY>
<?
    //define who is to receive the mail
    $mailTo = "[email protected]";    //set the subject
    $mailSubject = "Testing Mail";    //build body of the message
    $mailBody = "This is a test of PHP's mail function.";
    $mailBody .= "It was generated by PHP version ";
    $mailBody .= phpversion();    //add a from header
    $mailHeaders = "From: [email protected]\n";
    
    //send mail
    mail($mailTo, $mailSubject, $mailBody, $mailHeaders);
?>
</BODY>
</HTML>