From: Aidan Cornelius-Bell Date: Sun, 22 Sep 2024 23:17:52 +0000 (+0930) Subject: tweaks to actionmailer X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=6eb606eb645d82fc1e901f7f1adef0ac7dd19756;p=arelpe.git tweaks to actionmailer --- 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 " }