mm-mail

2.0.0 • Public • Published

Matter In Motion. Mail resource extension

NPM Version NPM Downloads

This extension adds a mail resource. Mail resource doesn't provide any public APIs. It uses nodemailer to send emails.

Usage

Extensions installation instructions

Settings

  • transport — as in nodemailer transport options
  • defaults — are the same options as below in the send method. defaults will be applied to all messages.
  • templates — optional, a name of the templates engine. Should be available as templates.${templates} unit.

Controller Methods

send(options)

For available options check nodemailer message documentation

  • template - template name that will be rendered with templates engine provided in the settings.
  • templateData - data object that will be passed to the template.

License: MIT.

Package Sidebar

Install

npm i mm-mail

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

7.1 kB

Total Files

8

Last publish

Collaborators

  • velocityzen