ok te dejo uno mas sencillo
si queres tomalo
creo que no debes de ponerte a romper cabezas..
jajaja
ahi va amigo
enviar.php
<?php
$mail='
[email protected]';
$nombre = $_POST['nombre'];
$telefono = $_POST['telefono'];
$email = $_POST['email'];
$mensaje = $_POST['mensaje'];
$thank="gracias.html";
$message = "
nombre:".$nombre."
telefono:".$telefono."
email:".$email."
mensaje:".$mensaje."";
if (mail($mail,"Formulario de Consulta",$message))
Header ("Location: $thank");
?>
formulario.php
<html>
<head>
<title>Formulario de Contacto</title>
</head>
<body>
<table width="30%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="form1" name="form1" method="post" action="enviar.php">
<p>Nombre:<br />
<label>
<input name="nombre" type="text" id="nombre" />
</label>
<br />
Telefono:<br />
<input name="telefono" type="text" id="telefono" />
<br />
Email:<br />
<input name="email" type="text" id="email" />
<br />
Mensaje:<br />
<textarea name="mensaje" id="mensaje"></textarea>
<br />
<label>
<input type="submit" name="Submit" value="Enviar Formulario" />
</label>
</p>
</form></td>
</tr>
</table>
</body>
</html>
gracias.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<b>Gracias</b>
<p><b><h3>lo mas pronto le responderemos </h3></b></p>
<?php
echo '&nombre':
echo '$telefono';
echo '$email';
echo 'Mensaje';
?>
</body>
</html>
espero te sirva ,,,, es mucho mas sencillo y funciona
ajajja
espero averte ayudadoo. si es asi mi karma