Ruby on Rails, Gmail and Net::SMTPAuthenticationError: 535-5.7.8 Username and Password not accepted
11 Feb 2021Are you getting following error while using Gmail SMTP?
Net::SMTPAuthenticationError: 535-5.7.8 Username and Password not accepted
The solution is simple.
- Go to https://www.google.com/settings/security/lesssecureapps
- Enable the switch marked below and you are done!