Closed mixalistzikas closed 5 years ago
In case others encounter this (as I did), here's what I did to get it to work:
transporter.use('compile', hbs({
viewEngine: {
extName: '.hbs',
partialsDir: './helpers/templates/',
// layoutsDir: './helpers/templates/',
defaultLayout: false,
},
viewPath: './helpers/templates/',
extName: '.hbs',
}));
The key here being the "defaultLayout: false". It's still unclear to me how one would actually utilize a defaultLayout while overriding it during "sendMail" since, as the issue description suggests, it appears to always use the defaultLayout when specified. Luckily, this is not my usecase. :smile:
I have the following settings with nodemailer
When I call this
or this
I always get the same template.... "new_message_from_shooter"
Any ideas?