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:
tengo el firewall abajo, y el puerto 25 abierto. utilizo windows server 2003 con el appsrv instalado. <?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";}; ?>