finds.dev← search

// the find

ActiveCampaign/postmark-rails

★ 396 · Ruby · MIT · updated Sep 2024

Official integration library for using Rails and ActionMailer with the Postmark HTTP API

This is the official ActionMailer delivery method for sending through Postmark's HTTP API instead of SMTP. It is aimed at Rails apps already on Postmark that want a maintained adapter wired in through config.action_mailer, without writing their own.

- The lib/ tree is a railtie, a delivery method, a templated mailer, and a preview interceptor, so the integration surface is small and easy to audit against ActionMailer's delivery contract.

- Setup is two lines in application.rb, and postmark_settings passes straight through to Postmark::ApiClient options, so there is no second configuration layer to learn.

- templated_mailer.rb and preview_interceptor.rb cover Postmark-specific workflows, server-side templates and previews, that the stock ActionMailer adapters don't address.

- Specs are split into unit and integration suites, including a batch delivery spec, and CI runs on CircleCI.

- The last push was 2024-09-20, about two years ago. For a client library tied to a third-party HTTP API, that gap is a reason to check the open issues and recent API changes before adopting it.

- The supported-versions list stops at Rails 7.0 and the setup section still shows the Rails 3-5 secrets.yml pattern. Expect to read the code yourself to confirm it works on a current Rails release.

- Most feature documentation lives on an external wiki rather than in the repo. Anything the README doesn't cover is one more hop away and can drift from the code.

- It wraps the separate postmark gem, so error handling, retries, and failure semantics come from that dependency. You need to read both codebases to know what a failed send actually does.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →