Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/11/2006, 07:03
linkito
 
Fecha de Ingreso: noviembre-2006
Mensajes: 17
Antigüedad: 17 años, 5 meses
Puntos: 0
Exclamación PHPMailer y problemas con HOTMAIL

Hola, estoy teniendo muchos problemas con la funcion mail() de PHP y PHPMailer... los dos por lo mismo.

Quiero hacer una newsletter, pero antes he estado haciendo pruebas para ver si llegan los correos a hotmail, y llegan a correo no deseado.

La newsletter es en HTML, pero sin embargo, si envio una newsletter (de prueba), sin HTML (osea por ejemplo: Hola), si que llega a la bandeja de entrada de hotmail.

No entiendo porqué puede estar pasando. Pego aquí el HTML de la newsletter y el PHP que envia la newsletter.

Por favor ayudenme. Gracias !




HTML NEWSLETTER:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"url de w3 ke no peudo ponerla en este foro grrrrr">
<html xmlns="url de w3 ke no peudo ponerla en este foro grrrrr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>KlubbersMeeting 25 Noviembre</title> <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.Estilo1 {
	font-family: Arial, Helvetica, sans-serif;
	color: #FFFFFF;
	font-size: 9px;
}
a:link,a:active,a:visited {
color :#FFFFFF;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
text-decoration: underline;
}
-->
</style></head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
bgcolor="#000000">
<tr>
<td><div align="center">
<img src="urldelaimagen" width="419" height="878" border="0" /></div></td>
</tr>
</table>
</body>
</html> 

PHP que envia a través de PHPMAILER:

Código PHP:
$mail = new PHPMailer();

$mail->From $mailprocedencia;
$mail->FromName $procedencia;
$mail->Mailer "mail";
$mail->Subject $asunto;
$mail->ContentType "text/html";
$mail->CharSet "iso-8859-1";
$mail->Sender "$mailprocedencia";
$mail->Version phpversion();

$selecttonews mysql_query("SELECT email from newsletter order by id asc");
while(
$vselecttonews mysql_fetch_array($selecttonews)){

$mail->Body    $htmltext;
$mail->AddAddress($vselecttonews["email"]);

if(!
$mail->Send()) { echo "Error enviando el mail a la direccion " $vselecttonews["email"] . "<br>"; }

$mail->ClearAddresses();

}