Configure SMTP settings
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 35s
Run unit tests / check-licenses (pull_request) Successful in 41s
Run unit tests / copyright_notice (pull_request) Successful in 45s
Run unit tests / unit_tests (pull_request) Successful in 2m16s
Run unit tests / build-static-assets (pull_request) Failing after 6m28s

This commit is contained in:
Manuel Bustillo 2025-07-05 13:10:34 +02:00
parent 717ee35015
commit ba8eb8b85e

View File

@ -72,6 +72,14 @@ Rails.application.configure do
# config.active_job.queue_name_prefix = "wedding_planner_production"
config.action_mailer.perform_caching = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: File.read(ENV["SMTP_ADDRESS"]).strip,
port: File.read(ENV["SMTP_PORT"]).strip,
user_name: File.read(ENV["SMTP_USER_NAME"]).strip,
password: File.read(ENV["SMTP_PASSWORD"]).strip,
authentication: File.read(ENV["SMTP_AUTHENTICATION"].strip&.to_sym)
}
# 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.