nodemailer-express-handlebars
nodemailer-express-handlebars copied to clipboard
A plugin for nodemailer that uses express-handlebars view engine to generate emails
i have a simple set up , so I define the defaultLayout to be 'resetPassword' and I exported the mailOptions alowing me to customize its parameters, so this setup is...
Hello! I have a problem, the plugin is looking for main.handlebars in the root of the project, and not in the folder I specified. ![The path to the views folder...
Hi dear "nodemailer-express-handlebars" team, when I deployed my app, this problem with module "./types" in "express-handlebars/dist/index.js" occured. Sep 20 04:00:10 PM Error: Cannot find module './types' Sep 20 04:00:10 PM...
Hello there, I'm trying to loop array of objects called reservation_items, this is my code: {{#each reservation_items}} Item ID: {{this.itemId}} Quantity: {{this.value}} Item Price: {{this.itemPrice}} Item Name: {{this.name}} {{/each}} -...
The presence of the `text_template` option doesn't work, only html is spewed out. ``` const mailOptions = { from: '[email protected]', to: '[email protected]', bcc: '[email protected]', subject: 'test', template: 'email', text_template: 'text',...
I have a simple report.handlebar file: table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } tr:nth-child(even) {...
When I use a custom file extension with settings below ```javascript hbs({ viewEngine: { extName: '.hbs', defaultLayout: false, partialsDir: PartialsDir, }, viewPath: TemplateFolder, extName: '.hbs', }) ``` My partials with...
I need to iterate my orders in my .hbs template. My code is given below ` var nodemailer = require('nodemailer'); var mailerhbs = require('nodemailer-express-handlebars'); let transporter = nodemailer.createTransport({ host: CONSTANT.SMTPHOST,...
When trying to send an email, the server crashes with this error: err checkout TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at new NodeError (node:internal/errors:329:5)...