Richard
As long as your form has the same variable name as used in your example (i.e. without the '$') the values of those variables is accessible.
Something resembling this should be close(you'll need to test!)
<?php
if ($submit) {
$sendto = "$email";
$subject = "$subject";
$message = "$message\n\n
$from = "$from";
mail("$sendto","$subject","$message","from: $from");
mail($sendto, $subject, $message, "From: $from\nReply-To: $from");
}
?>
<BODY>
FORM NAME="mail" METHOD="post" ACTION="<?php echo $PHP_SELF; ?>">
From:<INPUT TYPE="text" NAME="from"><BR>
To:<INPUT TYPE="text" NAME="sendto"><BR>
Subject:<INPUT TYPE="text" NAME="subject"><BR>
Message:<INPUT TYPE="text" NAME="message"><BR>
<INPUT TYPE="submit" NAME="submit" VALUE="Submit"><BR>
</FORM>
</BODY>