fix smtp without password

This commit is contained in:
Pete Matsyburka authored and Oleksandr Turchyn committed 2024-10-07 15:30:39 +03:00
1 parent dea80a82d8
commit b4dba0d809
4 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ module ActionMailerConfigsInterceptor
port: value['port'],
domain: value['domain'],
openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE,
authentication: value.fetch('authentication', 'plain'),
authentication: value['password'].present? ? value.fetch('authentication', 'plain') : nil,
enable_starttls_auto: true,
open_timeout: OPEN_TIMEOUT,
read_timeout: READ_TIMEOUT,