From e2767b2e111a3ba47df2ab44dafd791ed7e54120 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 7 Sep 2019 15:44:19 -0300 Subject: [PATCH] enviar correo a traves del contenedor... --- config/environments/production.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 8baa6439..9028c2bb 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,