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
481 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:56:06 -05:00
conf = Rails.application.settings :smtp
2018-12-08 22:10:22 -05:00
ActionMailer::Base.smtp_settings = {
2019-04-28 09:34:46 -04:00
address: conf[:address],
port: conf[:port]&.to_i,
domain: conf[:domain],
user_name: conf[:user_name],
password: conf[:password],
authentication: conf[:authentication]&.to_sym,
2018-12-08 22:10:22 -05:00
enable_starttls_auto: conf[:enable_starttls_auto],
2019-04-28 09:34:46 -04:00
openssl_verify_mode: conf[:openssl_verify_mode],
2018-12-08 22:25:34 -05:00
}.compact.presence