2.0.1 • Published 11 months ago
@ribban/unsend-nodemailer v2.0.1
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-nodemailerUsage
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>',
});