Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/04/2011, 17:31
Avatar de luis010182
luis010182
 
Fecha de Ingreso: julio-2009
Ubicación: Argentina - Capital Federal
Mensajes: 382
Antigüedad: 14 años, 10 meses
Puntos: 27
Respuesta: Enviar correo con PHP[Autentificacion SMTP]

no te la incluye la clase phpmailer cuando lo usa, yo los tengo en el mismo directorio

Código PHP:
          $mail = new phpmailer();
          
$mail->Mailer         "smtp";
          
$mail->Host         $host;
          
$mail->SMTPAuth     true;
          
$mail->Username     $user
          
$mail->Password     $pass;
          
$mail->From         $from;
          
$mail->FromName        $fromName;
          
$mail->AddAddress($para);
          
$mail->Subject $asunto;
          
$mail->Body $cuerpo;
        
$mail->AltBody $contenido;

        
$exito $mail->Send();

        
$intentos=1
          while ( (!
$exito) && ($intentos 5) ) {
              
sleep(2);
            
$exito $mail->Send();
            
$intentos=$intentos+1;    
        }

        if(!
$exito){
            
            return 
false;
        }
        else{
            return 
true;
        } 
Yo lo tengo asi y funciona.