Closed nicolasxu closed 6 years ago
. ├── app.js └── emails └── mars ├── html.pug └── subject.pug
to ├── app.js └── emails_templates └── mars ├── html.pug └── subject.pug
Below code does not work:
email.send({ template:'/email_template/account_created/html.html', message: { to: 'xu.shenxin@gmail.com' }, locals: { name: 'nick xu' } })
views: { root: path.resolve('email_template'), options: { extension: 'html', map: { html: 'htmling' } } }
Sorry, I answered my own question. Thanks!
Great!
. ├── app.js └── emails └── mars ├── html.pug └── subject.pug
to ├── app.js └── emails_templates └── mars ├── html.pug └── subject.pug
Below code does not work: