Closed Tech-AJ closed 4 years ago
See plugin options https://github.com/yads/nodemailer-express-handlebars#plugin-options. viewEngine
must either be an instance of express-handlebars or an options hash to pass to express-handlebars. https://github.com/express-handlebars/express-handlebars#configuration-and-defaults
I am using the following code-
and my directory structure is
I am getting the folllowing error - [Error: ENOENT: no such file or directory, open 'C:\Users\path\main.handlebars'] { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Users\path\main.handlebars'
Why is it expecting main.handlebars and not working?