add noverify smtp option

This commit is contained in:
Pete Matsyburka
2024-10-07 10:36:07 +03:00
committed by Oleksandr Turchyn
parent 9aa0a8ecbf
commit cf1b0a4c16
2 changed files with 3 additions and 3 deletions
+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',