mm-mail
v2.0.0
Published
Mail resource extension for Matter In Motion
Downloads
22
Maintainers
Readme
Matter In Motion. Mail resource extension
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.