Here you go. Had one open on in DW when I was reading...
Set your form action to
<? PHP_SELF ?>
and use the post method...
if ($_POST['Submit'] == 'Submit Doc') {
ob_start();
$name = $_POST['name'];
$email = $_POST['email'];
$telno = $_POST['telno'];
$spec = $_POST['spec'];
$problem = $_POST['problem'];
$subject = "whatever you want the subject to be";
mail("youremail", "$subject", "name = $name, email = $email, telno = $telno, spec = $spec problem, = $problem, ");
ob_end_flush();
}
Output buffer (the ob stuff) is in there in case you want to throw in a message or redirect to another page...learn the mail() function. It is very powerful and fairly easy to use.