Sha256: 8eadbdec4002cd659f20cfb13fed6b1cb6c9c4a66a41fb08d1cda78e63c85d01

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 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: ENV['FORCE_SSL'] == 'true' ? 'https' : 'http'
}

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: "[#{Heroku.stage.upcase}]"
  )
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
potassium-3.0.0 lib/potassium/assets/config/mailer.rb
potassium-2.3.0 lib/potassium/assets/config/mailer.rb