In this project, I have used nodemailer and googleapis to send email to any user's account. Here, I have send html template to the user. You can this project to send email templates for Password Reset or Email Confirmation to the user.
Nodemailer is a module for Node.js applications to allow easy as cake email sending. Go for documentation nodemailer docs.
To install
$ npm i nodemailer
Node.js client library for using Google APIs. Go for documentation Google API
To install
$ npm i googleapis
To use gmail as transporter, you will have to setup account on console.cloud.google.com. You will get all the authorization token, refresh token and access token there...
https://www.youtube.com/watch?v=18qA61bpfUs
Watch this video for full explanation...