Skip to content

Commit 4175e3e

Browse files
committed
our defaults should always be ssl
1 parent cc6a35b commit 4175e3e

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/mailhandler/sending/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(api_token = nil)
1717
@type = :postmark_api
1818
@host = DEFAULTS[:host]
1919
@api_token = api_token
20-
@use_ssl = false
20+
@use_ssl = true
2121

2222
@http_open_timeout = DEFAULTS[:open_timeout]
2323
@http_read_timeout = DEFAULTS[:read_timeout]

lib/mailhandler/sending/smtp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SMTPSender < Sender
2323
def initialize
2424
@type = :smtp
2525
@authentication = 'plain'
26-
@use_ssl = false
26+
@use_ssl = true
2727
@save_response = true
2828

2929
@open_timeout = 60

spec/unit/mailhandler/sending/sender_api_batch_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
aggregate_failures 'init details' do
1414
expect(sender.api_token).to eq api_token
1515
expect(sender.type).to eq :postmark_api
16-
expect(sender.use_ssl).to be false
16+
expect(sender.use_ssl).to be true
1717
expect(sender.host).to eq 'api.postmarkapp.com'
1818
end
1919
end

spec/unit/mailhandler/sending/sender_api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
aggregate_failures 'init details' do
1414
expect(sender.api_token).to eq api_token
1515
expect(sender.type).to eq :postmark_api
16-
expect(sender.use_ssl).to be false
16+
expect(sender.use_ssl).to be true
1717
expect(sender.host).to eq 'api.postmarkapp.com'
1818
end
1919
end

spec/unit/mailhandler/sending/sender_smtp_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
end
3333

3434
it 'use ssl' do
35-
expect(smtp_sender.new.use_ssl).to be false
35+
expect(smtp_sender.new.use_ssl).to be true
3636
end
3737

3838
it 'authentication' do

0 commit comments

Comments
 (0)