Transports

Resend

Send email through the Resend HTTP API.

Send email through the Resend HTTP API.

The one rule

Create this transport under the matching sently channel sender.

Configuration

OptionTypeDefault or requirement
apiKeystringrequired
baseUrlstringhttps://api.resend.com
rateDeltanumber2
rateLimitnumber1000
import { createMailer } from "sently/mailer";
import { ResendTransport } from "sently/transports/resend";

const sender = createMailer({ transport: new ResendTransport({ apiKey: process.env.RESEND_API_KEY! }) });
await sender.send({ from: "hello@example.com", to: "person@example.com", subject: "Hello", text: "Hi" });

On this page