hugokizo
31-08-2004, 12:32:46
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 (webmaster@pasevip.com>n)";
$headers .= "Reply-To: <webmaster@pas.com>\n (webmaster@pasevip.com>n)";
$headers .= "X-Sender: <webmaster@pas.com>\n (webmaster@pasevip.com>n)";
$headers .= "X-Mailer: PHP4\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <webmaster@pas.com>\n (webmaster@pasevip.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.
//---------------------------------------------------------------
$headers .= "From: <webmaster@pas.com>\n (webmaster@pasevip.com>n)";
$headers .= "Reply-To: <webmaster@pas.com>\n (webmaster@pasevip.com>n)";
$headers .= "X-Sender: <webmaster@pas.com>\n (webmaster@pasevip.com>n)";
$headers .= "X-Mailer: PHP4\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <webmaster@pas.com>\n (webmaster@pasevip.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.