mogy-email

Send Email activity for Mogy

Usage no npm install needed!

<script type="module">
  import mogyEmail from 'https://cdn.skypack.dev/mogy-email';
</script>

README

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": "gmail.user@gmail.com",
        "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 ✔ <foo@blurdybloop.com>', // sender address
        to: 'bar@blurdybloop.com, baz@blurdybloop.com', // list of receivers
        subject: 'Hello ✔', // Subject line
        text: 'Hello world ✔', // plaintext body
        html: '<b>Hello world ✔</b>' // html body
    }
})