6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/workarea/configuration/action_mailer.rb', line 6
def load
Rails.application.config.action_mailer.asset_host = Rails.application.config.action_controller.asset_host
Rails.application.config.action_mailer.show_previews = !Rails.env.production?
unless Rails.env.test? || Rails.env.development?
if Rails.application.secrets.smtp_settings.present?
Rails.application.config.action_mailer.raise_delivery_errors = true
Rails.application.config.action_mailer.delivery_method = :smtp
Rails.application.config.action_mailer.smtp_settings = smtp_settings
end
end
end
|