$mail = mail("toSomeone@somewhere.com", "Subject", "Message");
if ($mail){
echo "Everything went ok";
}else
echo "Error.";
You should replace the "toSomeone@somewhere.com", "Subject" and "Message" with the variables you have sent from your HTML-Form.
Example:
HTML-Form:
<form action="aPhpFile.php" method="post">
To:<input type="text" name="to"><br>
Subject:<input type="text" name="sub"><br>
Msg:<input type="text" name="msg"><br>
</form>
PHP-File:
<?
$mail = mail($to, $sub, $msg);
if ($mail){
echo "Everything went ok";
}else
echo "Error.";
?>
I have not tested it, but a litle bit of modification -> then it should work.
hope that i helped a bit
ali
PS: For more details look at the man Pages of php.net