<!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>
<?
$nombre = $_POST['Nombre'];
$mail = $_POST['Email'];
$empresa = $_POST['Apellidos'];
$header = 'From: ' . $_POST['$Email'] . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$mensaje = "Este mensaje fue enviado por " . $_POST['Nombre'] . ", " . $_POST['$Apellidos'] . " \r\n";
$mensaje .= "Su e-mail es: " . $_POST['Email'] . " \r\n";
$mensaje .= "Mensaje: " . $_POST['texto'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());
$para = '
[email protected]';
$asunto = 'Email de contacto de EscuelaProcan.es';
$enviado=mail($para, $asunto, utf8_decode($mensaje), $header);
if($enviado)
header('Location: http://www.escuelprocan.es/index.html');
?>
</body>
</html>