The basic mail should work with these scripts:
HTML Code:
<html>
<title> Send me an e-mail!</title>
<body>
<form action="process.php" method="post">
Sent from: <input type="text" align="center" size="35" maxlength="100" name="headers"> <br />
Subject: <input type="text" size="15" maxlength="15" name="subject" align="center"> <br />
<textarea rows="25" cols="90" wrap="physical" name="body" align="center">Put your message here</textarea><br />
<input type="submit" />
</form>
Process.php would look like this:
PHP Code:
<?php
$to = "towhereever@fromwhereever.com";
$subject = $_POST['subject'];
$body = $_POST['body'];
$headers = $_POST['headers'] .
"X-Mailer: php";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
And to make other forms, just put that their name is also $subject (I think that would work) and use the other form tags. IE:<option>,<input type="checkbox">.