Turned Rails.application.routes.default_url_options[:host] = ENV[MAILER_HOST] back on in production.rb file