Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/01/2010, 08:37
guzmange
 
Fecha de Ingreso: mayo-2008
Mensajes: 43
Antigüedad: 16 años
Puntos: 0
Php mailer no me funciona

Buenas, ando en vuelta hace dias con la intencion de poder mandar mail utilizando phpmailer y atraves de un correo gmail, pero no hay forma de que me ande, me tira el siguiente error SMTP Error: Could not connect to SMTP host.
eh visto varias guias por la web pero ninguna me funciona alguien tiene idea de que peude ser?? dejo a continuacion el codigo q estoy utilizando para el mismo... saludos y espero ayuda urgnete!!!
Código:
<?php
require("class.phpmailer.php");

class gMailer extends PHPMailer {
    /** CHANGE THESE AS REQUIRED **/
    public $From     = "[email protected]"; //PUT YOUR ADDRESS HERE
    public $FromName = "xxxx";    //PUT YOUR NAME HERE
    public $Password = "xxxx";    //PUT YOUR PASSWORD HERE
    
    /** DO NOT CHANGE THESE **/
    public $Host     = "ssl://smtp.gmail.com";
    public $Mailer   = "smtp";                     
    public $WordWrap = 75;
    public $Port = "25";
    public $SMTPAuth = true;
    
    
    public function __construct($debug = false){
        $this->Sender = $this->From;
        $this->Username = $this->From;
        $this->SMTPDebug = $debug;
    }
}

$mail = new gMailer(false);    //change to true if you are having trouble
$mail->AddAddress('[email protected]', 'addressee name');
$mail->Body = "This is a test message";
$mail->Subject = "Test Message";
if ($mail->send()) {echo "mail sent";};
?>
tengo el firewall abajo, y el puerto 25 abierto. utilizo windows server 2003 con el appsrv instalado.