# 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: BooleanValue.to_b(ENV['action_mailer_smtp_enable_starttls_auto']) } config.action_mailer.default_url_options = { host: ENV['action_mailer_default_url_host'], port: ENV['action_mailer_default_url_port'] } 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