From 8a7101a029a92b89eaddd308a20098802b4e0a0a Mon Sep 17 00:00:00 2001 From: martind2000 Date: Sun, 14 Feb 2016 14:47:35 +0000 Subject: [PATCH] updated today.js --- lib/today.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/today.js b/lib/today.js index 75b063e..a3c37e0 100644 --- a/lib/today.js +++ b/lib/today.js @@ -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);