updated today.js

This commit is contained in:
martind2000 2016-02-14 14:47:35 +00:00
parent 0a007ca520
commit 8a7101a029

View File

@ -299,9 +299,14 @@ function sendEmail() {
logger.debug(__dirname.substr(__dirname.lastIndexOf('/'), __dirname.length));
//if (__dirname.substr(__dirname.lastIndexOf('/'),__dirname.length))
mailer.sendTemplate(email, template, function (err) {
/* mailer.sendTemplate(email, template, function (err) {
if (err) throw err;
console.log('compiled template email sent');
});*/
mailer.sendText(email, 'Look at this fantastic email body!', function(err){
if(err) throw err;
console.log('email sent!');
});
var fn = jade.compileFile(template.file);