Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] add ssl params #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/locomotive/steam/middlewares/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/unit/middlewares/auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
port: 25,
authentication: 'plain',
enable_starttls_auto: false,
ssl: false,
) }

context 'no smtp metafields' do
Expand Down