thanks for the reply.
setting the debugging and the result is this:
CLIENT -> SERVER: EHLO xxxxxx.com
CLIENT -> SERVER: STARTTLS
CLIENT -> SERVER: EHLO xxxxxxx.com
CLIENT -> SERVER: AUTH LOGIN
CLIENT -> SERVER: aW5mb0BsYWJiYXRlaXRhbGlhLmNvbQ ==
CLIENT -> SERVER: S0pkaGR1eTcyN2pTZGs5ODNk
SMTP ERROR: Password command failed: 535 5.7.3 Authentication unsuccessful
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP connect () failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
strange that there are these errors because using directly phpmailer works.
what am I doing wrong?