Enviar el contenido de un formulario por mail.

<HTML><BODY BGCOLOR=FFFFFF>
<?php
$to = 'youremail@yourhost.www';
$from = 'autoreply@yourhost.www';//Check if we have something POSTed by the form.
if (isset($HTTP_POST_VARS)){
//Start with an empty body for the mail message
$body = '';
//Iterate through all the POSTed variables, and add them to the message body.
while (list($key, $value) = each($HTTP_POST_VARS)){
$body .= $key . ' = ' . $value . ;
}
//Build up some nice From/Reply Headers
$headers = "From: $from";
$headers .= "Reply-To: $from";
//Mail the message out.
//Requires setting php3.ini sendmail path as per instructions
$success = mail($to, "Posted " . date("m/d/Y"), $body, $headers);
//Always check return codes from functions.
if ($success){
echo "<B><CENTER>Thank you for your input</CENTER></B>";
}
else{
echo "<CENTER><B>Internal Error</B>: Your input was unprocessed.<BR>Contact $from</CENTER>";
}
}
?>
<FORM ACTION=formmail.php METHOD=POST>
<INPUT NAME=sample><BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY></HTML>

Comentarios

solo quisiera informacion hacerca de como utilizar wifiway

quisiera saber la forma de utilizar wifiway.. cualquier cosa que me puedan comentar hacerca de este programa me sera de gran alluda. gracias...