Knowledge Base

I’m receiving error "Help: EInformationalException:SMTP server error. Your SMTP server (smtp.gmail.com) returned: 535 Username and Password not accepted. what should I do?

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. I'd recommend double-checking your password as well as your user name. With Gmail, your SMTP user name needs to be your complete email address (example: username@gmail.com). Here is what your credentials for Gmail should look like:

  • Return Address: username@gmail.com
  • SMTP server: smtp.gmail.com
  • Port for TLS/STARTTLS: 587
  • Requires Authentication: Yes
  • SMTP Server Username: username@gmail.com
  • SMTP Server Password: xxxxxxxxxxxxxxxx
  • STARTTLS: Yes (if available)

Here is Gmail's official guide to using SMTP.

If you've checked your credentials and are sure that they're correct you may need to look into the admin 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 Rating (No Votes)

Rate this article


Article Info

Article Number: 147 | Last Updated: July 14, 2020

This article has been viewed 82 times since June 24, 2020

Filed Under: Alerts

Attachments

There are no attachments for this article.