From 6eb606eb645d82fc1e901f7f1adef0ac7dd19756 Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Mon, 23 Sep 2024 08:47:52 +0930 Subject: [PATCH] tweaks to actionmailer --- config/environments/production.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 01e9cea..56bbb57 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -78,6 +78,15 @@ Rails.application.configure do # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false + config.action_mailer.delivery_method = :smtp + config.action_mailer.smtp_settings = { + address: ENV['SMTP_ADDRESS'], + port: ENV['SMTP_PORT'], + user_name: ENV['SMTP_USERNAME'], + password: ENV['SMTP_PASSWORD'], + authentication: 'plain', + enable_starttls: true + } config.action_mailer.default_options = { from: "mind reader " } -- 2.39.5