Thursday, 9 March 2017

Introducing mailing in crontab-ui

Now crontab-ui has option to send mails after execution of jobs along with output and errors attached as text files. This internally uses nodemailer and all the options available through nodemailer are available here.

Defaults


To change the default transporter and mail config you can modify config/mailconfig.js.
var transporterStr = 'smtps://user%40gmail.com:password@smtp.gmail.com';

var mailOptions = {
    from: '"Fred Foo 👥" <foo@blurdybloop.com>', // sender address
    to: 'bar@blurdybloop.com, baz@blurdybloop.com', // list of receivers
    subject: 'Job Test#21 Executed ✔', // Subject line
    text: 'Test#21 results attached 🐴', // plaintext body
    html: '<b>Test#21 🐴</b> results attached' // html body
};

Troubleshooting


Make sure that you have node at /usr/local/bin/node else you need to create a softlink like this
ln -s [location of node] /usr/local/bin/node

1 comment:

  1. As stated by Stanford Medical, It is in fact the ONLY reason this country's women live 10 years longer and weigh on average 19 kilos lighter than us.

    (And really, it has NOTHING to do with genetics or some secret-exercise and EVERYTHING around "HOW" they are eating.)

    P.S, What I said is "HOW", and not "WHAT"...

    Click on this link to determine if this little questionnaire can help you unlock your real weight loss possibility

    ReplyDelete