Código HTML:
<html> <head> <title>envio</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <!-- --> <form action="enviado.php" method="post"> <input type="text" name="nombre"><br> <input type="email" name="email"> <br> <textarea name="coment"></textarea><br> <input type="submit" value="enviar"></form> <!-- --> </body></html>
Código PHP:
<?php
if (!$HTTP_POST_VARS){
}else{
$para = "arsuaga_guiu@orange.es";
$cuerpo = "Formulario enviado";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["email"] . "n";
$cuerpo .= "Comentarios: " . $HTTP_POST_VARS["coment"] . "n";
mail("para","asunto",$cuerpo);
echo "gracias por enviar tus comentarios";
} ?>
no recibo los mensajes aunque me dice que lo ha enviado
Muchas gracias