Email using bcc now, added jessica

This commit is contained in:
Martin Donnelly 2019-09-10 15:15:24 +01:00
parent 9897261108
commit 908ac6b3a8

View File

@ -155,9 +155,10 @@ function sendSMTP(data, newPath) {
const html = pug.renderFile( `${newPath }/` + 'pug/email.pug', data);
email({
'from': 'aida@caliban.io',
'to': 'martind2000@gmail.com',
'subject': `Suggestions - ${ dateFormat(now, 'dddd, mmmm dS, yyyy')}`,
'from': 'Aida <aida@caliban.io>',
'to': 'Aida <aida@caliban.io>',
'bcc': 'Martin <martind2000@gmail.com>, Jessica <ing.arvid@gmail.com>',
'subject': `Suggestions 🍳 - ${ dateFormat(now, 'dddd, mmmm dS, yyyy')}`,
'html': html
});
}
@ -197,9 +198,10 @@ function doJob() {
logger.debug(`Done:${data.ts}`);
}
/* (function() {
doJob();
}());*/
(function() {
// doJob();
logger.info('Menuizer started');
}());
cron.schedule('0 8 * * 6', function () {
doJob();