Sha256: 0e83c168b1b242dbe118b46d212f661852f9ac4b21c831e38b36d335ea8e407d

Contents?: true

Size: 999 Bytes

Versions: 17

Compression:

Stored size: 999 Bytes

Contents

# frozen_string_literal: true
Rails.application.configure do
  config.action_mailer.smtp_settings = {
    address: ENV['action_mailer_smtp_address'],
    port: ENV['action_mailer_smtp_port'],
    domain: ENV['action_mailer_smtp_domain'],
    user_name: ENV['action_mailer_smtp_username'],
    password: ENV['action_mailer_smtp_password'],
    authentication: ENV['action_mailer_smtp_authentication'],
    enable_starttls_auto:
      ::EacRailsBase0::BooleanValue.to_b(ENV['action_mailer_smtp_enable_starttls_auto'])
  }
  %i(host port).each do |option|
    value = ENV["action_mailer_default_url_#{option}"]
    if value.present?
      config.action_mailer.default_url_options ||= {}
      config.action_mailer.default_url_options[option] = value
    end
  end
  config.action_mailer.default_options ||= {}
  config.action_mailer.default_options[:from] = ENV['action_mailer_default_options_from']
  config.action_mailer.default_options[:reply_to] = ENV['action_mailer_default_options_reply_to']
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
eac_rails_base0-0.29.1 config/initializers/action_mailer.rb
eac_rails_base0-0.29.0 config/initializers/action_mailer.rb
eac_rails_base0-0.28.3 config/initializers/action_mailer.rb
eac_rails_base0-0.28.2 config/initializers/action_mailer.rb
eac_rails_base0-0.28.1 config/initializers/action_mailer.rb
eac_rails_base0-0.28.0 config/initializers/action_mailer.rb
eac_rails_base0-0.27.0 config/initializers/action_mailer.rb
eac_rails_base0-0.26.0 config/initializers/action_mailer.rb
eac_rails_base0-0.25.0 config/initializers/action_mailer.rb
eac_rails_base0-0.24.0 config/initializers/action_mailer.rb
eac_rails_base0-0.23.1 config/initializers/action_mailer.rb
eac_rails_base0-0.23.0 config/initializers/action_mailer.rb
eac_rails_base0-0.22.0 config/initializers/action_mailer.rb
eac_rails_base0-0.21.0 config/initializers/action_mailer.rb
eac_rails_base0-0.20.0 config/initializers/action_mailer.rb
eac_rails_base0-0.19.0 config/initializers/action_mailer.rb
eac_rails_base0-0.18.0 config/initializers/action_mailer.rb