Ver Mensaje Individual
  #12 (permalink)  
Antiguo 13/08/2008, 15:23
Avatar de dcolo
dcolo
 
Fecha de Ingreso: junio-2007
Mensajes: 20
Antigüedad: 16 años, 10 meses
Puntos: 0
Respuesta: ayuda para mandar html por php

dices asi:

Código PHP:
 mysql_select_db($base_de_datos);

   
$consulta2"SELECT correo from usuario where 1 LIMIT $min,$max";

   
$r=mysql_query($consulta2,$conectar);
   
$t=mysql_num_rows($r);
   
 while (
$row_consulta mysql_fetch_assoc($r)){

    
$mail2 $row_consulta['correo'];
 
     print 
$mail2;    
        
require 
"includes/class.phpmailer.php";
$mail = new PHPMailer();
$mail->Host "localhost";
$mail->From $correo;
$mail->FromName "MIO";
$mail->Subject $tit;
$email $mail2
$body  
"Hola <strong>amigo </strong><br>";
$body .= "probandoo <i>PHPMailer m<i>.<br><br>";
$body .= "<font color='red'>Saludos \n</font>";
$mail->Body $body;
$mail->AltBody "Hola ami\nprobando PHPMailer\n\nSaludos";
$mail->AddAttachment("htmls/algo.html""algo.html");
$mail->AddAttachment("htmls/algo.jpg""algo.jpg")
$mail->AddAddress($email);

    
$mail->Send(); 
}

}else{
   echo 
"cambios no realizados ";

si es asi tampoco me da