controlio-result-email

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i controlio-result-email

Homepage

control.io

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • lasar