mogy-email

v0.1.0
Send Email activity for Mogy
mogy-activity email

mogy-email

Send Email activity for mogy.

Installation

In your mogy project, install the dependency using npm :

$ npm install mogy-email --save

To register the email activity to Amazon Simple Workflow :

$ mogy register

Config

In your mogy environment config file, under the activities key, add :

"email": {
    "service": "Gmail",
    "auth": {
        "user": "[email protected]",
        "pass": "userpass"
    }
}

Cf https://github.com/andris9/nodemailer-wellknown#supported-services for a full list of supported services.

For a full list of available transport, see https://github.com/andris9/Nodemailer

Sample Decider Usage

activity({
    name: 'my-task',
    activity: 'email',
    input:  {
        from: 'Fred Foo ✔ <[email protected]>', // sender address
        to: '[email protected], [email protected]', // list of receivers
        subject: 'Hello ✔', // Subject line
        text: 'Hello world ✔', // plaintext body
        html: '<b>Hello world ✔</b>' // html body
    }
})
npm i mogy-email

Metadata

  • MIT
  • Whatever
  • Eric Abouaf
  • released 12/12/2014

Downloads

Maintainers