SMTP Error: Authentication failed

SMTP Error: Authentication failed

Hello! I am trying to configure the service on my website using PHPMailer, but despite typing the correct username and password... I constantly get the following error:

  1. 2020-02-10 18:56:03 Connection: opening to smtp.zoho.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
    2020-02-10 18:56:03 Connection: opened
    2020-02-10 18:56:03 SERVER -> CLIENT: 220 mx.zohomail.com SMTP Server ready February 10, 2020 10:56:03 AM PST
    2020-02-10 18:56:03 CLIENT -> SERVER: EHLO mydomain.com
    2020-02-10 18:56:03 SERVER -> CLIENT: 250-mx.zohomail.com Hello mydomain.com (153.92.0.24 (153.92.0.24))250-STARTTLS250 SIZE 53477376
    2020-02-10 18:56:03 CLIENT -> SERVER: STARTTLS
    2020-02-10 18:56:03 SERVER -> CLIENT: 220 Ready to start TLS.
    2020-02-10 18:56:03 CLIENT -> SERVER: EHLO mydomain.com
    2020-02-10 18:56:03 SERVER -> CLIENT: 250-mx.zohomail.com Hello mydomain.com (153.92.0.24 (153.92.0.24))250-AUTH LOGIN PLAIN250 SIZE 53477376
    2020-02-10 18:56:03 CLIENT -> SERVER: AUTH LOGIN
    2020-02-10 18:56:03 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    2020-02-10 18:56:03 CLIENT -> SERVER: [credentials hidden]
    2020-02-10 18:56:04 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    2020-02-10 18:56:04 CLIENT -> SERVER: [credentials hidden]
    2020-02-10 18:56:04 SERVER -> CLIENT: 535 Authentication Failed
    2020-02-10 18:56:04 SMTP ERROR: Password command failed: 535 Authentication Failed
    SMTP Error: Could not authenticate.
    2020-02-10 18:56:04 CLIENT -> SERVER: QUIT
    2020-02-10 18:56:04 SERVER -> CLIENT: 221 mx.zohomail.com closing connection
    2020-02-10 18:56:04 Connection: closed
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I hope you can help me, thanks in advance!