Configure SMTP settings #289

Merged
bustikiller merged 4 commits from smtp-settings into main 2025-07-05 11:56:23 +00:00
Showing only changes of commit ba8eb8b85e - Show all commits

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.