enviar correo a traves del contenedor...
This commit is contained in:
parent
25d5bb24b6
commit
e2767b2e11
1 changed files with 8 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue