Email using bcc now, added jessica
This commit is contained in:
parent
9897261108
commit
908ac6b3a8
14
index.js
14
index.js
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user