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
| Option | Type | Default or requirement |
|---|---|---|
apiKey | string | required |
baseUrl | string | https://api.resend.com |
rateDelta | number | 2 |
rateLimit | number | 1000 |
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" });No. Use the sently sender; provider-specific extras stay on the transport instance.