Sha256: 2f79a70e77289cd3af63084f1cfff1eb6a9dcd30fe89ef41bb206e5bb7a9143e
Contents?: true
Size: 770 Bytes
Versions: 3
Compression:
Stored size: 770 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: "[<%= get(:heroku) ? '#{Heroku.stage.upcase}' : '#{Rails.env}' %>]" ) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
potassium-5.1.3 | lib/potassium/assets/config/mailer.rb.erb |
potassium-5.1.2 | lib/potassium/assets/config/mailer.rb.erb |
potassium-5.1.1 | lib/potassium/assets/config/mailer.rb.erb |