Docs
Quickstarts

Send with Ruby

Use the official Ruby gem.

1. Install

gem install resend

2. Point the SDK at Postwave

RESEND_BASE_URL=https://postwaves.online/

3. Send an email

require "resend"

Resend.api_key = ENV["API_KEY"]

email = Resend::Emails.send({
  from: "Acme <onboarding@yourdomain.com>",
  to: ["delivered@postwave.test"],
  subject: "Hello world",
  html: "<strong>It works!</strong>"
})
puts email

4. Run it

API_KEY=pw_xxxxxxxxx ruby send.rb

You'll get back { "id": "…" }. Open Emails in the dashboard to see it arrive and its delivery status update.

Tip: delivered@postwave.test is a test address: it simulates a delivery without emailing anyone. Swap in a real address when you're ready.

Was this page helpful?Send feedback