2.0.1 • Published 1 year ago

@ribban/unsend-nodemailer v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Unsend Nodemailer

NPM package allowing you to send emails easily with the Unsend API.

How to get started

1. Install the package

npm install @ribban/unsend-nodemailer

Usage

Create Nodemailer Transport

import { UnsendTransport } from '@ribban/unsend-nodemailer';
import { createTransport } from 'nodemailer';

const mailer = createTransport(
  UnsendTransport.makeTransport({ apiKey: YOUR_UNSEND_API_KEY })
);

Send an Email

mailer.sendMail({
  from: 'hej@ribban.co',
  to: 'hej@sajn.se',
  subject: 'This is a example email!',
  html: '<h1>Enter your HTML content here!</h1>',
});
2.0.1

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago