title: Net::SMTPAuthenticationError in rails 3.1.0.rc5 when connecting to gmail
body: <p>When ever time i try sending notifications in my rails app i get the following error</p>
  
  <pre><code>Net::SMTPAuthenticationError (535-5.7.1 Username and Password not accepted. Learn more at                   
  ):
    app/models/friendship.rb:6:in `send_request'
    app/controllers/friends_controller.rb:21:in `make_friendship'
  </code></pre>
  
  <p>my development.rb mail config settings is </p>
  
  <pre><code>  # Don't care if the mailer can't send
    config.action_mailer.raise_delivery_errors = true
  
    config.action_mailer.delivery_method = :smtp
    # Gmail SMTP server setup
    config.action_mailer.smtp_settings = {
          :address =&gt; "smtp.gmail.com",
          :enable_starttls_auto =&gt; true,
          :port =&gt; 587,
          :domain =&gt; '@example.com',
          :authentication =&gt; :plain,
          :user_name =&gt; 'user@gmail.com',
          :password =&gt; 'secret'
    }
  </code></pre>