2.0.1 • Published 11 months ago

@ribban/unsend-nodemailer v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago