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: opened2024-01-08 01:22:46 SERVER -> CLIENT: 220 mx.zohomail.com SMTP Server ready January 7, 2024 5:22:47 PM PST2024-01-08 01:22:46 CLIENT -> SERVER: EHLO localhost2024-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 325058562024-01-08 01:22:47 CLIENT -> SERVER: AUTH LOGIN2024-01-08 01:22:47 SERVER -> CLIENT: 334 VXNlcm5hbWU62024-01-08 01:22:47 CLIENT -> SERVER: [credentials hidden]2024-01-08 01:22:47 SERVER -> CLIENT: 334 UGFzc3dvcmQ62024-01-08 01:22:47 CLIENT -> SERVER: [credentials hidden]2024-01-08 01:22:47 SERVER -> CLIENT: 535 Authentication Failed2024-01-08 01:22:47 SMTP ERROR: Password command failed: 535 Authentication FailedSMTP Error: Could not authenticate.2024-01-08 01:22:47 CLIENT -> SERVER: QUIT2024-01-08 01:22:48 SERVER -> CLIENT: 221 mx.zohomail.com closing connection2024-01-08 01:22:48 Connection: closedSMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingMailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I'm quite sure that I am using the correct username and password.