1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/initializers/action_mailer_smtp_settings.rb

17 lines
560 B
Ruby
Raw Normal View History

2018-12-03 14:15:21 -05:00
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
2018-12-08 22:10:22 -05:00
conf = Rails.application.config_for(:smtp).deep_symbolize_keys
ActionMailer::Base.smtp_settings = {
address: conf[:address],
port: conf[:port]&.to_i,
domain: conf[:domain],
user_name: conf[:user_name],
password: conf[:password],
authentication: conf[:authentication]&.to_sym,
enable_starttls_auto: conf[:enable_starttls_auto],
openssl_verify_mode: conf[:openssl_verify_mode],
}