I am a stupid fucking arse

This commit is contained in:
martind2000 2016-02-14 22:33:34 +00:00
parent 5ec4272611
commit 3723b544ce

View File

@ -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);