Mmm, no ha funcionado, mira si lo hice bien:
Código:
<?php
// INGRESE EL EMAIL DONDE RECIBIRÁ LOS DATOS DEL FOMULARIO
$para = '[email protected]';
$asunto = $_POST["Mail de Newmedia"];
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$MESSAGE_BODY = "Nombre: ".$_POST["nombre"]."<br>";
$MESSAGE_BODY .= "Email: ".$_POST["mail"]."<br>";
$MESSAGE_BODY .= "Ubicación: ".$_POST["ciudad"]."<br>";
$MESSAGE_BODY .= "Telefono: ".$_POST["telefonos"]."<br>";
$MESSAGE_BODY .= "Mensaje: ".nl2br($_POST["mensaje"])."<br>";
if (mail($para, $asunto, $MESSAGE_BODY, $mailheader)){
header("location: ./index.html");
} else {
echo "Error al enviar el Formulario !";
}
?>
Les dejo también el código del formulario:
Código:
<form action="enviar.php" method="post" name="contacto">
<fieldset>
<p><label>Nombre:</label><input name="nombre" type="text" /></p>
<p><label>Email:</label><input name="mail" type="text" /></p>
<p><label>País/Ciudad:</label><input name="ciudad" type="text" /></p>
<p><label>Teléfonos:</label><input name="telefonos" type="text" /></p>
<p><label>Mensaje:</label><textarea name="mensaje" cols="" rows=""></textarea></p>
</fieldset>
<fieldset>
<p><input type="submit" name="submit" id="submit" value="Enviar"></p>
</fieldset>
</form>
Estoy usando el 960 grid, no se si este pueda ocasionar algún problema...
Gracias, y saludos....