From 6747b3d39ce4e9c5cc575d1e365baae597b67971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Wed, 26 Feb 2020 12:21:24 +0100 Subject: [PATCH] [FIX] add ssl params --- lib/locomotive/steam/middlewares/auth.rb | 3 ++- spec/unit/middlewares/auth_spec.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/locomotive/steam/middlewares/auth.rb b/lib/locomotive/steam/middlewares/auth.rb index 0d1adaf5..a69efa19 100644 --- a/lib/locomotive/steam/middlewares/auth.rb +++ b/lib/locomotive/steam/middlewares/auth.rb @@ -195,7 +195,8 @@ def smtp user_name: smtp_config['user_name'], password: smtp_config['password'], authentication: smtp_config['authentication'] || 'plain', - enable_starttls_auto: (smtp_config['enable_starttls_auto'] || "0").to_bool, + enable_starttls_auto: (smtp_config['enable_starttls_auto'] || '0').to_bool, + ssl: (smtp_config['ssl'] || '0').to_bool, } end end diff --git a/spec/unit/middlewares/auth_spec.rb b/spec/unit/middlewares/auth_spec.rb index e3d0c064..abf628a3 100644 --- a/spec/unit/middlewares/auth_spec.rb +++ b/spec/unit/middlewares/auth_spec.rb @@ -24,6 +24,7 @@ port: 25, authentication: 'plain', enable_starttls_auto: false, + ssl: false, ) } context 'no smtp metafields' do