i am trying to use phpMailer to send confirmation messages to users via email. my code is this:
wrong:
$mail->Host = "ssl://smtp.gmail.com"; // specify main and backup server
good:
$mail->Host = "smtp.gmail.com"; // specify main and backup server
From here
2) Comment out the following lines of code in class.phpmailer.php
/*
if(strstr($hosts[$index], ":"))
list($host, $port) = explode(":",
$hosts[$index]); else
*/
Try this if you haven't already.
in you php.ini make sure you have uncommented the line with
extension=php_openssl.dll
This page has code the author claims "worked flawlessly".
The only real difference I see between his and yours is that his has:
$mail->Mailer = "smtp";
I guess I would start with his code exactly to see if it works, and then debug from there.