1.0.0 • Published 6 years ago

effortless-mailer v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

effortless-mailer

Please note, that current default email provider is Amazon SES.

Installation

$ npm i effortless-mailer

Features

  • Email field could contain a string with a single email address or an array of addresses.
  • An individual email will be sent as usual, with a recipient in "To:" field. If there are more then one recipient if will use "Bcc:" field instead.
  • Amazon SES has limitation of 50 recipients per API request. If you will try to send an email to a higher amount of users, this module will split it into multiple bunches of up to a 50 users and will wrap it in a single Promise.

Usage

// Config for Amazon SES:
const options = {
  from: 'Company <info@company.com>',
  accessKeyId: "ABC123",
  secretAccessKey: "XYZ789",
  region: "us-east-1",
};
 
const mailer = require('effortless-mailer')(options);
 
mailer.sendEmail(email, subject, htmlBody)
1.0.0

6 years ago

0.7.0

6 years ago

0.6.5

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0-a

6 years ago