Skip to content

Commit

Permalink
Merge pull request #822 from open-data-rescue/fix-starttls-setting
Browse files Browse the repository at this point in the history
fix start tls setting
  • Loading branch information
balen authored Jun 18, 2024
2 parents 49e4347 + 78d6e73 commit 6816e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
authentication = ENV.fetch('SMTP_AUTHENTICATION', nil) # plain etc
action_mailer.smtp_settings[:authentication] = authentication if authentication
enable_starttls_auto = ENV.fetch('SMTP_SSL_START_AUTO', nil)
action_mailer.smtp_settings[:enable_starttls_auto] = enable_starttls_auto if enable_starttls_auto
action_mailer.smtp_settings[:enable_starttls_auto] = enable_starttls_auto.to_s.downcase == "true" if enable_starttls_auto
openssl_verify_mode = ENV.fetch('SMTP_SSL_VERIFY_MODE', nil)
action_mailer.smtp_settings[:openssl_verify_mode] = openssl_verify_mode if openssl_verify_mode
tls_mode = ENV.fetch('SMTP_TLS', nil)
Expand Down

0 comments on commit 6816e51

Please sign in to comment.