How do I fix email error message "Help: EInformationalException:SMTP server error. Your SMTP server (smtp.gmail.com) returned: 535 Username and Password not accepted." ?


Question

I’m receiving error "Help: EInformationalException:SMTP server error. Your SMTP server (smtp.gmail.com) returned: 535 Username and Password not accepted." What can I do to fix it?

Solution

The "535 Username and Password not accepted" error message usually means that the credentials are not quite correct. We recommend double-checking your password as well as your user name. With Gmail, your SMTP username needs to be your complete email address (example: username@gmail.com). Here is what your credentials for Gmail should look like:

Here is Gmail's guide to using SMTP.

If you've checked your credentials and are sure that they're correct, then you may need to look into the administrator settings for your Google account. Specifically, if your account has "Less secure apps" enabled which means it can use apps that don't use OAuth 2.0. If you can't enable it using the previous link you may need to get in touch with your Gsuite administrator to see if they can enable this for your account.

Note: If you're using 2-step authentication you cannot use "less secure apps".



Article ID: 147
Created On: June 24, 2020
Last Updated On: August 20, 2020

Online URL: https://www.pingman.com/kb/article/how-do-i-fix-email-error-message-help-einformationalexceptionsmtp-server-error-your-smtp-server-smtpgmailcom-returned-535-username-and-password-not-accepted-147.html