Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/11/2008, 15:38
Avatar de eddwinpaz
eddwinpaz
 
Fecha de Ingreso: noviembre-2007
Ubicación: Merida , Venezuela
Mensajes: 1.066
Antigüedad: 16 años, 5 meses
Puntos: 25
<?
$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.
__________________
O nos hacemos miserables o nos hacemos fuertes , la cantidad de trabajo es la misma.