Aqui les dejo el codigo "enviar.php" de mi formulario
Código PHP:
<?php
/*******************************************************************************/
// Variables:
$TO = "[email protected]";
// E-mail.
$PAGE = "http://www.miservidor.com/";
// Pagina de salida.
// Seccion de Variables necesarias
/******************************************************************************/
$headers = "From: $Email <$Name>\n";
$headers .= "http://www.miservidor.com/\n";
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
$message .= "\nSent by ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n";
mail($TO, $Name, $message, $headers);
// Variables del e-mail
if(! $exit_page)
$exit_page = $PAGE;
Header("Location: ".$exit_page);
// Pagina de salida -> $exit_page
?>