Try this:
Code:
<form acion="thisfile.php" method="post">
<p>subject<p>
<input type="text" name="subject" />
<p>From</p>
<input type="text" name="from" />
<p>Body</p>
<textarea rows="50" cols="70" name="body" />
<input type="submit" value="send email" />
<?php
$subj = $_POST['subject'];
$to = "[email protected]";
$body = $_POST['body'];
$from = $_POST['from'];
mail($to, $subj, $body, $from);
?>
I think this is what you want, hopefully it works.
"Judge a man by his questions, not by his answers."
-Voltaire