Added ca_file option to use the SSL_CA_FILE specified file if present (#1302)

* Added ca_file option to use the SSL_CA_FILE specified file if present

* Per AI suggestion changed to reading env var directly`
This commit is contained in:
Florian Krauthan
2026-03-27 06:41:59 -07:00
committed by GitHub
parent 6a6548de64
commit e7af0ad99b

View File

@@ -83,7 +83,8 @@ Rails.application.configure do
user_name: ENV["SMTP_USERNAME"],
password: ENV["SMTP_PASSWORD"],
tls: ENV["SMTP_TLS_ENABLED"] == "true",
openssl_verify_mode: ENV["SMTP_TLS_SKIP_VERIFY"] == "true" ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
openssl_verify_mode: ENV["SMTP_TLS_SKIP_VERIFY"] == "true" ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER,
ca_file: ENV["SSL_CA_FILE"]
}
# Ignore bad email addresses and do not raise email delivery errors.