enviar correo a traves del contenedor...

This commit is contained in:
f 2019-09-07 15:44:19 -03:00
parent 25d5bb24b6
commit e2767b2e11
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -120,10 +120,16 @@ Rails.application.configure do
# ActiveRecord::Middleware::DatabaseSelector::Resolver::Session # ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
# Recibir por mail notificaciones de excepciones # 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.perform_deliveries = true
config.action_mailer.raise_delivery_errors = 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.action_mailer.default_options = { from: ENV['DEFAULT_FROM'] }
config.middleware.use ExceptionNotification::Rack, config.middleware.use ExceptionNotification::Rack,