fix smtp without password

This commit is contained in:
Pete Matsyburka
2024-10-05 13:15:25 +03:00
committed by Oleksandr Turchyn
parent dea80a82d8
commit b4dba0d809
4 changed files with 7 additions and 9 deletions
+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,