diff --git a/config/environments/production.rb b/config/environments/production.rb index 8baa643..9028c2b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -120,10 +120,16 @@ Rails.application.configure do # ActiveRecord::Middleware::DatabaseSelector::Resolver::Session # Recibir por mail notificaciones de excepciones - config.action_mailer.default_url_options = { host: ENV['SUTTY'] } + config.action_mailer.default_url_options = { + host: ENV.fetch('SUTTY', 'sutty.nl') + } config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true - config.action_mailer.delivery_method = :sendmail + config.action_mailer.delivery_method = :smtp + config.action_mailer.smtp_settings = { + address: 'postfix', + domain: ENV.fetch('SUTTY', 'sutty.nl') + } config.action_mailer.default_options = { from: ENV['DEFAULT_FROM'] } config.middleware.use ExceptionNotification::Rack,