i am trying to use phpMailer to send confirmation messages to users via email. my code is this:
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.