mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
8 lines
244 B
Ruby
8 lines
244 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
if ENV['SMTP_USE_AWS_SES'] == 'true'
|
||
|
options = {}
|
||
|
options[:region] = ENV['AWS_SES_REGION'] if ENV['AWS_SES_REGION'].present?
|
||
|
ActionMailer::Base.add_delivery_method :ses, Aws::Rails::SesMailer, **options
|
||
|
end
|