#SendHTML #nodejs #express
Send HTML email from node.js application with Express,nodemailer,email-templates, and Gmail SMTP server
Install the following packages - npm install nodemailer ejs email-templates
There are many template engines available for Node.js. Each templating engine uses a different language to define the HTML template and inject data into it.
Jade
Vash
EJS -- Embedded JavaScript templates
Mustache
Dust.js
Nunjucks
Handlebars
atpl
haml
set DEBUG=* & npm start
set DEBUG=email-templates & npm run start:de
Before testing, the Gmail account should be enabled for less secure app access
You can use fakeSMTP for development testing
Start the fakeSMTP - java -jar fakeSMTP-2.0.jar
Code repository - https://github.com/techforum-repo/you...