enable_starttls_auto true when using ENV

This commit is contained in:
Pete Matsyburka
2024-01-12 22:24:03 +02:00
parent c9a5b0e66e
commit 59cf1b435e
+1 -1
View File
@@ -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