Ver Mensaje Individual
  #12 (permalink)  
Antiguo 23/12/2008, 14:07
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: phpmailer+gmail o alguna manera sin puerto:25

Aqui esta mi configuracion y debajo la version de PHPMailer que uso

Código PHP:
    include "include/mailer/class.phpmailer.php";
    include_once 
"include/mailer/class.smtp.php"// Parece que no es necesario, pero por si acaso tambien lo incluyo
    
$mail = new PHPMailer();
    
$mail->SMTPDebug false;
    
$mail->IsSMTP();
    
$mail->SMTPAuth   true;                  // enable SMTP authentication
    
$mail->SMTPSecure "ssl";                 // sets the prefix to the servier
    
$mail->Host       "smtp.gmail.com";      // sets GMAIL as the SMTP server
    
$mail->Port       465;                   // set the SMTP port for the GMAIL server
    
$mail->Username   $smtp_user;  // GMAIL username
    
$mail->Password   $smtp_pass;            // GMAIL password
    
$mail->AddReplyTo($email$nombre);
    
$mail->From       $email;
    
$mail->FromName   $nombre;
    
$mail->Subject    "Formulario de contacto vía WEB";
    
$mail->AltBody    "Para ver este mensaje por favor utiliza un cliente de correo electrónico compatible con HTML."// optional, comment out and test
    
$mail->WordWrap   50// set word wrap
    
$mail->MsgHTML($body);
    
$mail->AddAddress($to_mail$to_name);
    
$mail->IsHTML(true); // send as HTML
    
$enviado $mail->Send();

    if(
$enviado)
        
// Notificar al usuario que el mail se envio correctamente
    
else
        
// Notificar al usuario que no se pudo enviar el mail 
Código:
|  Software: PHPMailer - PHP email class                                    |
|   Version: 2.2.1                                                          |
__________________
- León, Guanajuato
- GV-Foto