controlio module for sending emails in response to events
A result module for controlio.
Send an email using the Mode.js module Nodemailer.
This module currently allows only a subset of the nodemailer functionality. Most
importantly it only works with the SMTP transport, no other types can be
configured at this moment.
- smtp: This is used as the options object as defined by the nodemailer-smtp-transport. For available settings see the Usage documentation.
- mail: Used as the data object passed to Nodemailer's sendMail function. See Nodemailer's documentation about E-mail message fields.
Additionally the mail object can contain the following keys: subjectFile,
'textFile' and htmlFile. When these keys contain the path to a file then that
file's content is used as subject, text and html respectively. Note that
the paths will not be relative to your configuration and thus should be defined
absolutely (or you can just prepend __dirname).
For further details consult the Nodemailer
documentation.