mirror of
https://github.com/devkitshq/notifkit.git
synced 2026-10-19 18:24:52 +02:00
@notifkit/provider-resend
Resend email transport for notifkit. Sends through Resend and verifies delivery webhook signatures with the Resend SDK, so bounces and complaints feed back into notifkit's suppression list automatically.
npm install @notifkit/provider-resend
import { ResendTransport } from "@notifkit/provider-resend";
registry.register(
"email",
new ResendTransport({
apiKey: process.env.RESEND_API_KEY!,
from: "notifications@example.com",
webhookSecret: process.env.RESEND_WEBHOOK_SECRET,
}),
);
A template may carry its own from and replyTo, so one transport can serve
both transactional and campaign mail. Requires notifkit as a peer dependency.
Documentation: notifkit.dev/docs. MIT licensed.