diff --git a/lib/today.js b/lib/today.js index 32f910a..345c8ab 100644 --- a/lib/today.js +++ b/lib/today.js @@ -299,15 +299,10 @@ function sendEmailV1() { 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);