Ruby

Official Ruby SDK — gem install resent

Install the Resent client:

$gem install resent

Or add to your Gemfile:

1gem "resent"
1require "resent"
2
3resent = Resent.new(ENV.fetch("RESENT_API_KEY"))
4
5result = resent.emails.send(
6 from: "Acme <noreply@yourdomain.com>",
7 to: "you@example.com",
8 subject: "Hello World",
9 html: "<strong>It works!</strong>"
10)
11
12puts result["submission_id"]