is there a method (or function to PHP people) in the PHPMailer class called
IsSMTP();
?
By the naming it sounds more like a property that you would assign a value to, but I can't be sure as I don't know PHPMailer.
Given that further on you seem to call a similarly-named method:
$mail->IsHTML(true);
You might want to pass a boolean to
IsSMTP();
:
$mail->IsSMTP(true);