PHPMailer - SMTP ERROR: Password command failed: 535 Authentication Failed

PHPMailer - SMTP ERROR: Password command failed: 535 Authentication Failed

Hi

Trying to send mails with PHPMailer and get an error. Full stack below:

Error: 2024-01-08 01:22:45 Connection: opening to ssl://smtp.zoho.com:465, timeout=300, options=array()
2024-01-08 01:22:46 Connection: opened
2024-01-08 01:22:46 SERVER -> CLIENT: 220 mx.zohomail.com SMTP Server ready January 7, 2024 5:22:47 PM PST
2024-01-08 01:22:46 CLIENT -> SERVER: EHLO localhost
2024-01-08 01:22:47 SERVER -> CLIENT: 250-mx.zohomail.com Hello localhost (105.184.4.122 (105.184.4.122))250-AUTH LOGIN PLAIN250 SIZE 32505856
2024-01-08 01:22:47 CLIENT -> SERVER: AUTH LOGIN
2024-01-08 01:22:47 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2024-01-08 01:22:47 CLIENT -> SERVER: [credentials hidden]
2024-01-08 01:22:47 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2024-01-08 01:22:47 CLIENT -> SERVER: [credentials hidden]
2024-01-08 01:22:47 SERVER -> CLIENT: 535 Authentication Failed
2024-01-08 01:22:47 SMTP ERROR: Password command failed: 535 Authentication Failed
SMTP Error: Could not authenticate.
2024-01-08 01:22:47 CLIENT -> SERVER: QUIT
2024-01-08 01:22:48 SERVER -> CLIENT: 221 mx.zohomail.com closing connection
2024-01-08 01:22:48 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I'm quite sure that I am using the correct username and password.
    • Sticky Posts

    • Pocket from Mozilla is closing shop. Don’t lose your favorites . Move them to Zoho Mail Bookmarks now! 📥🔖

      The end of Pocket shouldn't mean the end of your important links and content. Easily import them into Zoho Mail's Bookmarks and continue right where you left off. You can bring over your entire Saves, Collections, and tags just the way they are. Bookmarks
    • Zoho Mail POP & IMAP Server Details

      Hello all! We have been receiving a number of requests regarding the errors while configuring or using Zoho Mail account in POP/ IMAP clients. The server details vary based on your account type and the Datacenter in which your account is setup. Ensure
    • Workplace - Zoholics Europe Customer Awards

      Dear Zoho Mail Community! 📣 We're excited to announce that at this year's Zoholics events across Europe, we're holding customer awards for the first time ever! Workplace - Zoholics Europe Customer Awards This is your chance to shout about the amazing
    • Important update on Group Management | Zoho Mail

      Dear Zoho Mail Community, This post is to inform you all of the following updates on the Group Management in Zoho Mail. Group Member Addition: If a group member is added to an organization group in a Zoho Application, the member will be automatically
    • Mastering email etiquette and best practices to follow in Zoho Mail

      Hello Zoho Mail Community, We’re thrilled to invite you all to our upcoming webinar: Mastering email etiquette and best practices to follow in Zoho Mail. Join our live webinar for expert etiquette tips to enhance your professionalism and elevate your