Transport for sending email via the Resend SDK
npm install @documenso/nodemailer-resend
import { ResendTransport } from '@documenso/nodemailer-resend';
import { createTransport } from 'nodemailer';
const mailer = createTransport(
createTransport(
ResendTransport.makeTransport({
apiKey: process.env.NEXT_PRIVATE_RESEND_API_KEY || '',
}),
),
);
mailer.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Resend!',
html: '<h1>Hello world!</h1>',
});