From 59cf1b435ebdee7d86a8a3fc77f4a65bba8a0d87 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 12 Jan 2024 22:24:03 +0200 Subject: [PATCH] enable_starttls_auto true when using ENV --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 971fe022..57ff50a8 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -85,7 +85,7 @@ Rails.application.configure do user_name: ENV.fetch('SMTP_USERNAME', nil), password: ENV.fetch('SMTP_PASSWORD', nil), authentication: ENV.fetch('SMTP_AUTHENTICATION', 'plain'), - enable_starttls_auto: ENV['SMTP_ENABLE_STARTTLS_AUTO'] == 'true' + enable_starttls_auto: ENV['SMTP_ENABLE_STARTTLS_AUTO'] != 'false' }.compact end