-
Notifications
You must be signed in to change notification settings - Fork 71
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
Upcoming Postmark TLS Changes #102
Comments
You need to make sure that your ruby/openssl version supports TLS version greater than 1.0 which should be the case unless you're using a very old version of ruby or openssl - support for TLS 1.1 & 1.2 was added back in 2012: ruby/ruby@060184c . The best way to check if you're safe is to connect to the new temporary endpoint and send an email: require 'postmark'
client = Postmark::ApiClient.new(SERVER_TOKEN, host: 'api-ssl-temp.postmarkapp.com')
client.deliver(from: ..., to: ...., text_body: 'test') In case of any issues with ruby and SSL I recommend this troubleshooting guide from the bundler project: https://bundler.io/guides/rubygems_tls_ssl_troubleshooting_guide.html#tls-10-and-11-are-deprecated . EDIT: |
Thanks @tomazy 👍 |
You may need to add client = Postmark::ApiClient.new(POSTMARK_API_TOKEN, host: 'api-ssl-temp.postmarkapp.com', http_ssl_version: :TLSv1_2) In case you use config.action_mailer.postmark_settings = {
api_token: ENV['POSTMARK_API_TOKEN'],
http_ssl_version: :TLSv1_2,
} |
Please note that Method: HTTPClient::SSLConfig#ssl_version See: 529e9db |
I may be mistaken here, but I ran into an exception when following the testing steps above. Despite the bundler curl test passing 👌. After updating our postmark(-rails) gem test email sent fine. Just in case someone runs into this exception and thinks they need to fix other things - check that your postmark gem is up to date. Before gem update:
After update:
|
after upgrading to the latest postmark gems, I had to install openssl gem, install libssl-dev package and recompile the ruby binary - all good now |
Hello,
Does this gem already support (or will support) the upcoming changes to the Postmark API? This email just went out, but it's not clear if official clients such as this one are ready to go.
Thanks for your help!
The text was updated successfully, but these errors were encountered: