Ver Mensaje Individual
  #1  
Antiguo 31-08-2004
hugokizo hugokizo is offline
Registrado
 
Registrado: ago 2004
Posts: 3
Reputación: 0
hugokizo Va por buen camino
problemas con mandar mails html

buenas, cuando mando un mail de texto plano, no hay ningun problema, pero cuando mando un mail tal que:

//---------------------------------------------------------------
$headers .= "From: <webmaster@pas.com>\n";
$headers .= "Reply-To: <webmaster@pas.com>\n";
$headers .= "X-Sender: <webmaster@pas.com>\n";
$headers .= "X-Mailer: PHP4\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <webmaster@pas.com>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";

$html="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<body>
</body>
</html>
";
mail ("mimail@gmail.com", 'Mensaje desde Pas de hola', $html, $headers);

//---------------------------------------------------------------

No me llega, ni si pongo destino gmail ni hotmail. en un principio, no sé si es porque hotmail ya no acepta mensajes html, o que en mi servidor mail ha cambiado algo, pero no sabría qué.

¿Alguien puede ayudarme?

gracias.
Responder Con Cita