0.0.2 • Published 11 years ago
controlio-result-email v0.0.2
controlio-result-email
A result module for controlio.
Description
Send an email using the Mode.js module Nodemailer.
Options
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 theoptionsobject as defined by the nodemailer-smtp-transport. For available settings see the Usage documentation.mail: Used as thedataobject passed to Nodemailer'ssendMailfunction. 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.