</head>
<body><?php
$mail='
[email protected]';
$nombre = $_POST['nombre'];
$email = $_POST['email'];
$msg = $_POST['msg'];
$thank="index.html";
$message = "
nombre:".$nombre."
email:".$email."
msg:".$msg."";
if (mail($mail,"consulta",$message))
Header ("Location: $thank");
?>
</body>
</html>
me estoy rompiendo la cabeza
Gracias`por la ayuda