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.