<?
$nombre= $_POST['nombre'];
$email = $_POST['email'];
$titulo= $_POST['titulo'];
$mensaje = $_POST['mensaje'];
//$headers .= "MIME-Version: 1.0\n";
//$headers .= "Content-type: text/html; charset=iso-8859-1\n";
//$headers .= "From: $_POST[nombre] <$_POST[email]>";
$mailheaders = "MIME-Version: 1.0 \r\n";
$mailheaders .= "Content-type: text/html; charset=iso-8859-1 \r\n";
$mailheaders .= "From: $nombre <$email> \r\n";
$mailheaders .= "Return-path: $nombre <$email> \r\n";
$mailheaders .= "X-Priority: 1 \r\n";
$mailheaders .= "X-MSMail-Priority: High \r\n";
$mailheaders .= "X-Mailer: PHP/".phpversion()." \n";
if (isset($email)):
# la dirección electrónica a la que enviar el email
$target="[email protected]";
mail($target,
$titulo,
"Nombre: ".$nombre.
"\nEmail: ".$email.
"\nTítulo: ".$titulo.
"\nMensaje: ".$mensaje,
$headers);
endif;
?>
No quito los derechos de Autor. aqui esta el post
http://www.forosdelweb.com/f18/envia...de-php-600127/
Lo hizo el usuario:
Gerald Yo solo busque en el foro.. saludos.