<title>Formulario</title>
</head>
<body>
<table width="343" border="0" align="center">
<tr> <td><form name="form1" method="post" action="enviar.php">
<table width="338" border="0">
<tr>
<td>Nombre:</td>
<td><input name="nombre" type="text" id="nombre"></td>
</tr>
<tr>
<td>Email:</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td>Mensaje:</td>
<td><textarea name="msg" rows="10" id="msg"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Enviar" /></td>
<td> </td>
</tr>
</table>
</form></td>
</tr> </table>
<p><?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");
?> </p>
</body>
</html>