Some reminders for how to configure email via a rails application.

Watch this:
http://railscasts.com/episodes/274-remember-me-reset-password

Add this:

production.rb

  config.action_mailer.delivery_method = :smtp
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.smtp_settings = {
    :address              => "smtp.gmail.com",
    :port                 => 587,
    :domain               => 'foo.com',
    :user_name            => 'foo@bar.com',
    :password             => 'xxx',
    :authentication       => 'plain',
    :enable_starttls_auto => true
  }

  config.action_mailer.default_url_options = { :host => "foo.com" }

And ignore the Heroku blog post about emailing via gmail.

Links that help

http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration-for-gmail

Tips
– restart prod server