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.

[Node.js SDK]

Express

Add reliable transactional email to Express APIs and middleware with a few lines of Node.js.

Step 1

Install the package

Add the official Node.js client to your Express project.

bash
npm install reloop-email

Step 2

Set your API key

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

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

Step 3

Send email from Express

Use this Express snippet to send your first message. Works with REST APIs ยท Middleware.

send_email.ts
1import express from 'express';
2import Reloop from 'reloop-email';
3
4const app = express();
5const reloop = new Reloop(process.env.RELOOP_API_KEY);
6
7app.post('/send', async (req, res) => {
8 const { data, error } = await reloop.emails.send({
9 from: 'Acme <onboarding@yourdomain.com>',
10 to: [req.body.to],
11 subject: 'Hello from Express',
12 html: '<strong>It works!</strong>',
13 });
14
15 if (error) return res.status(500).json({ error });
16 res.json({ id: data.id });
17});
18
19app.listen(3000);

Send with Express.

Get an API key and ship transactional email from Express using the official Node.js SDK.