1.0.5 • Published 3 years ago

malta-notify v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

npm version npm downloads npm downloads


This plugin can be used on all files

Options :
- configFile : path for a json file that is expected to contain all information needed to send the email, this path is relative to the template folder:

{
    "smtp" : "smtp.xxxxxxxx.com",
    "account" : "xxxxxxxxxxxxxxxxx@gmail.com",
    "pwd": "xxxxxxxxxxxxxx",
    "from" : "'xxxxxxx yyyyyyy 👥'' <xxxxxxxxxxx@gmail.com>",
    "port": 465,
    "subject" : "%fname% compiled",
    "content" : {
        "txt" : "The new content is :\n\n\n%content%",
        "html" : "<b>The new  content is:</b><br/><br/><br/><textarea style=\"width:100%;height:500px;background-color:#444;color:#0f0;font-size:2em\">%content%</textarea>"
    }  
}

then the destination address: - to : a valid email address

Sample usage:

malta app/source/index.js public/docs -plugins=malta-notify[configFile:\"mailer/params.json\",to:\"fedeghe@gmail.com\"]

or in the .json file :

"app/source/index.js" : "public/docs -plugins=malta-notify[configFile:\"mailer/params.json\",to:\"fedeghe@gmail.com\"]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.js',
    'public/docs',
    '-plugins=malta-notify[configFile:\"mailer/params.json\",to:\"fedeghe@gmail.com\"]',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });
1.0.5

3 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago