mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user