For the complete site index, see llms.txt. Docs index: llms-docs.txt. Marketing corpus: llms-full.txt. Docs corpus: llms-full-docs.txt. Prefer markdown URLs where available (append .md).. Product skill: skill.md. Pricing: pricing.md. Docs MCP: /docs/mcp. Site MCP: /mcp.

[Ruby SDK]

Ruby on Rails

Ship password resets and receipts from Rails controllers and Active Job with the Ruby gem.

Step 1

Install the package

Add the official Ruby client to your Ruby on Rails project.

bash
gem install reloop-email

Step 2

Set your API key

Create a free Reloop account, copy your API key, and add it to your Ruby on Rails environment.

Get an API key free โ†’
bash
RELOOP_API_KEY="re_xxxxxxxx"

Step 3

Send email from Ruby on Rails

Use this Ruby on Rails snippet to send your first message. Works with Controllers ยท Active Job.

send_email.rb
1require 'reloop'
2
3class EmailsController < ApplicationController
4 def create
5 Reloop.api_key = ENV['RELOOP_API_KEY']
6
7 email = Reloop::Emails.send(
8 from: 'Acme <onboarding@yourdomain.com>',
9 to: [params[:to]],
10 subject: 'Hello from Rails',
11 html: '<strong>It works!</strong>'
12 )
13
14 render json: { id: email[:id] }
15 end
16end

Send with Ruby on Rails.

Get an API key and ship transactional email from Ruby on Rails using the official Ruby SDK.