Coder Social home page Coder Social logo

Comments (5)

chaudard avatar chaudard commented on August 16, 2024 5

I received this email
https://postmarkapp.com/updates/upcoming-tls-configuration-changes-for-api-users-action-may-be-required

I tested :

POSTMARK_API_KEY = 'mypostmarkapikey'
client = Postmark::ApiClient.new(POSTMARK_API_KEY, host: 'api-ssl-temp.postmarkapp.com')
client.deliver(from: "...", to: "...", text_body: 'test TLS')

Before updating the gem , the test failed with the message :
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: no protocols available

I just updated the gem : bundle update postmark-rails
...
Installing postmark 1.21.3 (was 1.15.0)
...
And then the test succeded :
{:error_code=>0, :message=>"OK"}
thanks to @nickhammond

from postmark-rails.

nickhammond avatar nickhammond commented on August 16, 2024 4

@tonydehnke Forgot to mention it but since this is a patch release you should be able to just run bundle update postmark and it'll bump the version to 1.21.3.

from postmark-rails.

nickhammond avatar nickhammond commented on August 16, 2024 2

Hi @tonydehnke!

Apologies for the issues with SSL, I've just released a new version of the postmark gem(1.21.3) that no longer supplies a default SSL version and instead uses the default provided via OpenSSL. You can still specify a specific version if you'd like but it's no longer required, let us know if you have any issues! Going to close this for now but feel free to re-open it if needed.

from postmark-rails.

brunnopleffken avatar brunnopleffken commented on August 16, 2024 1

This fix worked perfectly!

My report: I was unable to send emails, the log is full of OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: no protocols available). Just adding the http_ssl_version: :TLSv1_2 fixed this issue and my ActionMailer is back to work.

Thanks!

from postmark-rails.

tonydehnke avatar tonydehnke commented on August 16, 2024

Thanks.. I see know that postmark-rails has postmark as a dependancy, hadn't noticed that before.

from postmark-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.