buenas!!
creo que esta mal como estas asignando el protocolo
Código PHP:
$mail->IsHTML(true);
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "ssl://smtp.gmail.com"; // SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server 465 587
$mail->SMTPAuth = true; // enable SMTP authentication
al hacer miles de pruebas eh visto que al no asignar el protocolo aunque este bien configurado este no funciona... checale...
saludos!!