Site5 is my host of choice when it comes to Ruby on Rails hosting. At this risk of sounding like a sponsored post, their dashboard, hosting options, customer service, and uptimes are solid.

I’m working on a project in which I’m using Devise for the authentication system but had a bit of a time getting the application to properly send email notifications.

According to Google results, this seems to be a relatively common problem so I’m sharing my configuration options here:

In /environments/production.rb:

config.action_mailer.default_url_options = { :host => "" }
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :sendmail
config.action_mailer.smtp_settings = {
  :address => "",
  :port => 25,
  :domain => "",
  :authentication => :login,
  :user_name => "",
  :password => "MyPassword",

Make sure that the value for :host for the default_url_options is for the domain to which the email address will link the user. For example, if your application runs on, then that should be the value for the :host.

Other than that, this fires the email immediately.