Setting up a Gmail Account to work with ActionMailer in Rails 3
If you are using the development environment, change the development.rb to raise delivery errors, with config.action_mailer.raise_delivery_errors = true Also, the problem might be that :user_name should be the entire email address (myemail@gmail.com), that’s how Gmail authenticates users.