<?php
session_start();
$mensaje='';
$to="MAIL PERSONAL QUE NO SE VISUALIZA EN LA WEB Y A LA QUE LLEGA EL FORMULARIO";
$subject="Consulta Web";
$mensaje=$mensaje."Nombre: ".$_REQUEST["nombre"]."\n";
$mensaje=$mensaje."Apellido: ".$_REQUEST["apellido"]."\n";
$mensaje=$mensaje."E-mail: ".$_REQUEST["email"]."\n";
$mensaje=$mensaje."\n".$_REQUEST["mensaje"]."\n";
$env=@mail($to,$subject,$mensaje,"From:".$_REQUEST["email"]);
?>
<html>
<head>
<title></title>
<?php
require("icono.php");
require("metatags.php");
require("estilo.php");
require("scripts.php");
?>
</head>
<body marginwidth="0" leftmargin="0" marginheight="0" topmargin="0">
<?php
echo("<!---------------MAIN--------------------------->");
require("top.php");
require("menu.php");
require("barras.php");
?>
<?php if (!$env) {echo("
<div style='position:absolute; left:250; top:400;'>
<table>
<tr height='19px'>
<td><p align='center'>Lamentamos anunciar que su consulta no ha sido enviada</p></td>
<!--td background='../IMG/buttons/ini.jpg' width='3' align='left'></td-->
<td background='../IMG/buttons/med.jpg' width='70' align='center'><a href='main.php?link=contacto'><i>volver atras</i></a></td>
<!--td background='../IMG/buttons/fin.jpg' width='3' align='right'></td-->
</tr>
</table>
</div>
");
}
else{
echo("
<div style='position:absolute; left:250; top:400;'>
<table aling='center'>
<tr height='19px'>
<td><p align='center'>En unos días recibirá respuesta a su consulta. Muchas gracias.</p></td>
<td background='../IMG/buttons/ini.jpg' width='3' align='left'></td>
<td background='../IMG/buttons/med.jpg' width='100' align='center'><a href='main.php?link=inicio'><i>Inicio</i></a></td>
<td background='../IMG/buttons/fin.jpg' width='3' align='right'></td>
</tr>
</table>
</div>
");
}
?>
<?php
require("footer.php");
echo("<!-------------END MAIN----------------------------->");
require("disconnect.php");
?>
</body>
</html>