0.0.2 • Published 10 years ago

controlio-result-email v0.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
10 years ago

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 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.

0.0.2

10 years ago

0.0.1

10 years ago