Quickstarts
Send with Ruby
Use the official Ruby gem.
1. Install
gem install resend2. Point the SDK at Postwave
RESEND_BASE_URL=https://post-waves.com/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 email4. Run it
API_KEY=pw_xxxxxxxxx ruby send.rbYou'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