Merge pull request 'Configure SMTP settings' (#289) from smtp-settings into main
All checks were successful
Run unit tests / rubocop (push) Has been skipped
Run unit tests / copyright_notice (push) Has been skipped
Run unit tests / check-licenses (push) Has been skipped
Run unit tests / unit_tests (push) Successful in 55s
Run unit tests / build-static-assets (push) Successful in 11m9s
All checks were successful
Run unit tests / rubocop (push) Has been skipped
Run unit tests / copyright_notice (push) Has been skipped
Run unit tests / check-licenses (push) Has been skipped
Run unit tests / unit_tests (push) Successful in 55s
Run unit tests / build-static-assets (push) Successful in 11m9s
Reviewed-on: #289
This commit is contained in:
commit
45313daba2
@ -72,6 +72,19 @@ Rails.application.configure do
|
|||||||
# config.active_job.queue_name_prefix = "wedding_planner_production"
|
# config.active_job.queue_name_prefix = "wedding_planner_production"
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
config.action_mailer.delivery_method = :smtp
|
||||||
|
config.action_mailer.smtp_settings = begin
|
||||||
|
{
|
||||||
|
address: File.read("/run/secrets/smtp_address").strip,
|
||||||
|
port: File.read("/run/secrets/smtp_port").strip.to_i,
|
||||||
|
user_name: File.read("/run/secrets/smtp_user_name").strip,
|
||||||
|
password: File.read("/run/secrets/smtp_password").strip,
|
||||||
|
authentication: File.read("/run/secrets/smtp_authentication").strip.to_sym
|
||||||
|
}
|
||||||
|
rescue Errno::ENOENT
|
||||||
|
{}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
# Ignore bad email addresses and do not raise email delivery errors.
|
||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user