Skip to content

matter-in-motion/mm-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.