Socket
Book a DemoInstallSign in
Socket

@documenso/nodemailer-resend

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@documenso/nodemailer-resend

Transport for sending email via the Resend SDK

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

Nodemailer Resend

Transport for sending email via the Resend SDK

NPM Version GitHub Repo stars GitHub

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>',
});

FAQs

Package last updated on 23 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts