mirror of
https://github.com/hanzoai/nodemailer-resend.git
synced 2026-10-30 14:54:13 +00:00
Rename package to @hanzo namespace + update repo URL + author. No code changes — upstream MIT license retained.
1006 B
1006 B
Nodemailer Resend
Transport for sending email via the Resend SDK
Getting Started!
Install the package
npm install @documenso/nodemailer-resend
Usage
Create Nodemailer Transport
import { ResendTransport } from '@documenso/nodemailer-resend';
import { createTransport } from 'nodemailer';
const mailer = createTransport(
createTransport(
ResendTransport.makeTransport({
apiKey: process.env.NEXT_PRIVATE_RESEND_API_KEY || '',
}),
),
);
Send an Email
mailer.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Resend!',
html: '<h1>Hello world!</h1>',
});