From 3429ac64ec383c9b3b272d42436788bb87115eda Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sat, 5 Jul 2025 13:10:34 +0200 Subject: [PATCH] Configure SMTP settings --- config/environments/production.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 7da12a5..0be03de 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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: ENV["SMTP_ADDRESS"], + port: ENV["SMTP_PORT"], + user_name: ENV["SMTP_USER_NAME"], + password: ENV["SMTP_PASSWORD"], + authentication: ENV["SMTP_AUTHENTICATION"]&.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.