3.0.0 • Published 2 months ago

@documenso/nodemailer-resend v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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: 'timur@documenso.com',
  to: 'zeno@resend.com',
  subject: 'Hello from Resend!',
  html: '<h1>Hello world!</h1>',
});
3.0.0

2 months ago

2.0.0

6 months ago

1.0.0

8 months ago