I solved the problem. First of all carefully studied PHMailer documentation for the latest version and made some changes.
I discovered that the information received was wrong.
- The mail server is an exchange server not POP3.
- SMTPSecure for PHPMailer must be TLS.
- The SMTP port is 587 not 465
Everything is now working fine on IIS and the webserver