title: Gmail on heroku with Rails 3
body: <p>I am trying to send emails from Heroku up and running. At the moment I can send emails from Heroku via the "tutorial" at <a href="http://blog.heroku.com/archives/2009/11/9/tech_sending_email_with_gmail/" rel="noreferrer">http://blog.heroku.com/archives/2009/11/9/tech_sending_email_with_gmail/</a>, so that is fine.</p>
  
  <p>My current problem is that when I got it to work at Heroku, I can't get it to work in development. I had that up and running with settings in either environment.rb or development.rb, but after the stuff in the tutorial kicked in and I removed the settings in env/dev.rb it doesn't work.</p>
  
  <p>In the browser I get the error msg:
  <code>530-5.5.1 Authentication Required. Learn more at</code> (it cuts after Learn more at)</p>
  
  <p>In the server console I get the error msg:
  <code>Net::SMTPAuthenticationError (530-5.5.1 Authentication Required. Learn more at<br>
  ):</code></p>
  
  <p>I have set <code>heroku config:add GMAIL_SMTP_USER=username@gmail.com</code> and <code>heroku config:add GMAIL_SMTP_PASSWORD=yourpassword</code> (with my info ;)), but it doesn't help.</p>
  
  <p>Any ideas what I am doing wrong?</p>
  
  <p>Can I do it the old way in development and skip the heroku script in some way?</p>
  
  <p>Cheers Carl</p>