2.0.0 • Published 6 years ago

mm-mail v2.0.0

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

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.