add noverify smtp option
This commit is contained in:
committed by
Oleksandr Turchyn
parent
9aa0a8ecbf
commit
cf1b0a4c16
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user