Send transactional email from Cloudflare Workers using Reloop's HTTP API, with no Node.js SDK required. Works on the edge runtime.
Why the SDK doesn't work on Cloudflare Workers
Cloudflare Workers run in a V8 isolate, not a Node.js environment. Node.js built-ins like net, tls, and http are unavailable. The Reloop Node.js SDK uses these for SMTP, so on Workers, you call the HTTP REST API directly instead.
The good news: the HTTP API is simple
Everything the SDK does, the HTTP API does too. And fetch is available natively in Workers.
Setting up your Worker
1export default {2 async fetch(request: Request, env: Env): Promise<Response> {3 if (request.method === "POST" && new URL(request.url).pathname === "/send") {4 return sendEmail(env);5 }6 return new Response("Not found", { status: 404 });7 },8};Sending an email via the HTTP API
1async function sendEmail(env: Env): Promise<Response> {2 const response = await fetch("https://api.reloop.sh/v1/emails", {3 method: "POST",4 headers: {5 Authorization: `Bearer ${env.RELOOP_API_KEY}`,6 "Content-Type": "application/json",7 },8 body: JSON.stringify({9 from: "hello@yourdomain.com",10 to: "user@example.com",11 subject: "Hello from the edge",12 html: "<p>Sent from a Cloudflare Worker.</p>",13 }),14 });15
16 const data = await response.json();17 return Response.json(data);18}Storing your API key securely
Never hardcode the API key. Add it as a Cloudflare secret:
wrangler secret put RELOOP_API_KEYAccess it as env.RELOOP_API_KEY in your Worker.
Defining the Env type
1interface Env {2 RELOOP_API_KEY: string;3}Deploying
wrangler deployYour Worker is now live globally on Cloudflare's edge network with email sending built in.
Read more

How to Send Email in Next.js App Router (2026)
Send transactional email from Next.js App Router with Reloop: complete Server Action and Route Handler examples, env setup, error handling, and Vercel deploy.
Email with SvelteKit: A Developer's Guide
Send transactional email from SvelteKit server endpoints and form actions using Reloop's Node.js SDK, with full TypeScript support.
Send Transactional Email from Remix
Add reliable transactional email to your Remix app using Reloop's Node.js SDK, from loader/action setup to environment variable handling.

How to Check if an Email is Disposable (Free Temp Email Checker)
In this guide, you'll learn what disposable emails are, why they matter, and how you can quickly check if an email is disposable.
Ship your first email with Reloop
in minutes.
Open-source, deliverability-focused, and yours to self-host or run on Reloop Cloud. No lock-in, no rewrite later.