currently I'm doing Daniel Kehoe's Learn Ruby on Rails tutorial. One of the exercises is to send a contact form from the Contact page using Google's Gmail account.
However, when I sent the contact form, instead of getting an email in my mailbox, I'm getting this error:
"SMTP-AUTH requested but missing user name"
In my config/application.yml file, I set my Gmail username and password.
Does anyone have an idea what could be the problem?
thanks for your help,
Anthony
For Rails 4.0 (Rails 4.1 uses a secrets.yml file to set credentials):
Check the file config/environments/development.rb, you should have this:
Try replacing ENV["GMAIL_USERNAME"] with your Gmail username.
You can set ENV["GMAIL_USERNAME"] in your Unix shell. Or set it in the file config/application.yml. If the username contains any non-alpha characters, you may need to enclose it in quotes in the file config/application.yml.