Resend

Send emails using Resend with the Resend adapter.

CloudSelf-HostedLinks
✅ Supported✅ SupportedNPM Package

Usage

Installation

Install resend adapter
bun i @vitnode/resend -D
pnpm i @vitnode/resend -D
npm i @vitnode/resend -D

Import the adapter

vitnode.api.config.ts
import { ResendEmailAdapter } from "@vitnode/resend";
import { buildApiConfig } from "@vitnode/core/vitnode.config";

export const vitNodeApiConfig = buildApiConfig({
  email: {
    adapter: ResendEmailAdapter({
      apiKey: process.env.RESEND_API_KEY,
      from: process.env.RESEND_FROM_EMAIL,
    }),
  },
});

Environment Variables

Add the following environment variables to your .env file:

.env
RESEND_API_KEY=your_resend_api_key
RESEND_FROM_EMAIL=your_verified_resend_email
Resend - VitNode