@documenso/nodemailer-resend
v4.0.0
Published
Transport for sending email via the Resend SDK
Downloads
3,061
Readme
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>',
});