Sha256: 197d710a41f5a4004b70de52529837ad4bd4b947e2d4e3f132f2cb7530220868

Contents?: true

Size: 732 Bytes

Versions: 1

Compression:

Stored size: 732 Bytes

Contents

Rails.application.config.action_mailer.raise_delivery_errors = false
Rails.application.config.action_mailer.delivery_method = :<%= get(:mailer_delivery_method) %>

Rails.application.config.action_mailer.default_url_options = {
  host: ENV.fetch('APPLICATION_HOST'),
  protocol: 'https'
}

Rails.application.config.action_mailer.default_options = { from: ENV['DEFAULT_EMAIL_ADDRESS'] }
ASSET_HOST = ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))
Rails.application.config.action_mailer.asset_host = ASSET_HOST

if ENV["EMAIL_RECIPIENTS"].present?
  Mail.register_interceptor RecipientInterceptor.new(
    ENV["EMAIL_RECIPIENTS"],
    subject_prefix: "[<%= get(:heroku) ? '#{Heroku.stage.upcase}' : '#{Rails.env}' %>]"
  )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
potassium-5.1.4 lib/potassium/assets/config/mailer.rb.erb