add noverify smtp option

This commit is contained in:
Pete Matsyburka authored and Oleksandr Turchyn committed 2024-10-07 15:30:39 +03:00
1 parent 9aa0a8ecbf
commit cf1b0a4c16
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -43,9 +43,9 @@ module ActionMailerConfigsInterceptor
address: value['host'],
port: value['port'],
domain: value['domain'],
openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE,
openssl_verify_mode: value['security'] == 'noverify' ? OpenSSL::SSL::VERIFY_NONE : nil,
authentication: value['password'].present? ? value.fetch('authentication', 'plain') : nil,
enable_starttls_auto: true,
enable_starttls_auto: value['security'] != 'tls',
open_timeout: OPEN_TIMEOUT,
read_timeout: READ_TIMEOUT,
ssl: value['security'] == 'ssl',