файл №1: [ index.php ]
<?
echo"<form method=post action=submit.php>";
echo"<input type=text name=mail>";
echo"<input type=text name=body>";
echo"<input type=submit value=send>";
echo"</form>";
?>
// Файл №2: [ submit.php ]
<?
$subj="тема сообщения";
$headers = "MIME-Version: 1.0\\r\\n";
$headers .= "Content-type: text/plain; charset=windows-1251\\r\\n";
$headers .= "From: [email]billy@microsoft.com[/email]\\n";
mail($mail, $subj, $body, $headers);
?>