io ho sempre usato questa funzione:

Codice PHP:
if(!$mail->Send())
{
   echo 
"Mailer Error: " $mail->ErrorInfo;