Prerequisites

To get the most out of this guide, you’ll need to:

1. Install

Get the Resend Ruby SDK.

2. Send email using HTML

The easiest way to send an email is by using the html parameter.

index.rb
require "resend"

Resend.api_key = "re_123456789"

params = {
  "from": "Acme <onboarding@resend.dev>",
  "to": ["delivered@resend.dev"],
  "subject": "hello world",
  "html": "<strong>it works!</strong>"
}

sent = Resend::Emails.send(params)
puts sent

3. Try it yourself

Ruby Example

See the full source code.