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