Grow with us: Join Postmark's new referral partner program and start earning
x

Send emails with Ruby

See why Ruby developers prefer Postmark API for sending application emails

5 Minute Set Up

1

Add the Postmark Ruby Gem to your Gemfile

gem 'postmark'
2

Create an instance of Postmark::ApiClient and send your first email.

# Require gem:
require 'postmark'

# Create an instance of Postmark::ApiClient:
client = Postmark::ApiClient.new('POSTMARK-SERVER-API-TOKEN-HERE')

# Send an email:
client.deliver(
  from: 'sender@example.com',
  to: 'recipient@example.com',
  subject: 'Hello from Postmark',
  html_body: 'HTML body goes here',
  track_opens: true)

Want to test our APIs and activity logging? Send emails to test@blackhole.postmarkapp.com

3

Once you’ve sent your first email, check out the Ruby API client docs →

Here’s what our customers have shared

Postmark has a reputation for high quality. Even though there are several good companies, we were convinced by Postmark’s clear documentation and transparent roadmap. Further, building email infrastructure is really a partnership — we wanted to invest in a platform that would continue to grow along with our needs, not one that was fairly static and falling behind the technology curve.

Cliff Chang

Cliff Chang

Product Engineer at Asana

Postmark is superior to SendGrid in every regard.

Michael Whalen‏

Michael Whalen‏

via Twitter

My customers are so confident in their transactional email now, that they no longer include 'check in your spam box' in their website messaging anymore. Account email confirmations and missing invoices are a thing off the past. The activity feed gives myself and my customers total confidence in using email for important tasks again.

Jonathan Malko

Jonathan Malko

Owner at ShoutMedia.net

I came from Mailgun and left because too many emails went missing. Now, my email shows up instantly for people and the amount of time I save on support requests is worth it. A+ quality service.

Chris Leippi

Chris Leippi

Founder at Booksprout.co

From side projects to Fortune 500...

We’ve got you covered. We process transactional email for companies of all sizes:

Everything you need for first class email delivery

A comprehensive suite of tools to help you seamlessly integrate email with your Ruby application.

  • Placeholder

    Keep an eye on how we’re doing using our public status page and robust status API.

  • Placeholder

    Easy integration via API or SMTP so you can start sending in minutes.

  • Placeholder

    Send your transactional email over SMTP or through the Postmark API.

  • Placeholder

    Full transparency on email delivery. It’s right on our status page.

  • Envelope flying into postbox.

    Industry-leading delivery speeds. Up to 4x faster than other providers.

  • Placeholder

    Great customer support whenever you need it. Our knowledgable customer success team won’t let you down.

Lightning fast delivery

Your customers expect transactional emails to arrive immediately—not eventually.
We constantly monitor our delivery speeds and share the data publicly.

  • Gmail

  • Apple

  • Hotmail

  • AOL

  • Yahoo

Time to Inbox data updated every 5 minutes

Take Postmark for a spin

Join thousands of developers that already trust their email delivery to Postmark.