Learn how to send your first email using the Resend Ruby SDK.
To get the most out of this guide, you’ll need to:
Get the Resend Ruby SDK.
gem install resend
The easiest way to send an email is by using the html parameter.
html
require "resend" Resend.api_key = "re_xxxxxxxxx" 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
See the full source code.
Was this page helpful?