mogy-email
v0.1.0
Published
Send Email activity for Mogy
Downloads
3
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": "[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
}
})