I'm developing a Rails app which when I run it locally, it's able to send emails through a gmail account via smtp.
When I moved it to my server, it comes up with the following error for example when I try to create a new user.
Net::SMTPAuthenticationError in UsersController#create
535-5.7.1 Username and Password not accepted.
Best Answer
To make sure, your SMTP information should look like this: