JWT_SECRET=<secret>
MAIL_USER=<user-email@xyz.com>
MAIL_PASSWORD=<password>
MONGO_STRING=<mongo-connection-string>
- Install dependencies
$ npm install
- Run the server
$ node server.js
Generate email
POST /api/create
body json
{
"full-name" : "name",
"email-address" : "email",
}
- sending email
- cleaning design and text "path : server/template/mail2.hbs