Last Updated: February 25, 2016
·
6.886K
· geetotes

535-5.7.8 Username and Password not accepted. Learn more at

This is how I wish I discovered answers on the internet:

===============================================

Are you having the error 535-5.7.8 Username and Password not accepted. Learn more at when trying to send mail using ruby on rails?

Does this happen after you've changed the password in an account you're using to send the emails?

Does the error persist even after you correct the config file?

Did you Google the term 535-5.7.8 Username and Password not accepted. Learn more at along with all these other terms only to find no solution?

Other terms you may have used (taken from my search history):

  • gmail allow action mailer
  • gmail allow smtp
  • rails smtp mailer not working with gmail
  • amazon game boy color </strike>

Maybe you thought it was a problem with gmail, as I did. Did you read an uncanny number of Stackoverflow posts where recommend installing an ssl wrapper gem for SMTP that had already been rolled into rails in the 2+ years since the answer was written?

Dear reader, if that desperation describes you, then rejoice for you have discovered this blog entry though clever and intentional use of SEO on my part! I have discovered the solution to this mysterious and frustrating error, and it might be simpler than you think:

rails -s

4 Responses
Add your response

haha! This is great :) Thanks!

over 1 year ago ·

Thank you. I searched for so long.

over 1 year ago ·

this doesn't seem to work for me? when I type in "rails -s" in my terminal it says command -s not recognized. Can you possibly tell me what I'm doing wrong?

I'm placing this is a Procfile on this line:
web: bundle exec rails -s
.env
Procfile

over 1 year ago ·

try using "rails s" (s is shortcut for server)

over 1 year ago ·