Node API for send mails html(.hbs) templates.
$ npm i
$ npm i -g pm2
Copy .env.example
to .env
and set environments
$ npm start
- stop applications:
$ npm stop
- Request example as curl:
curl -X POST \
http://localhost:3000/send-mail \
-H 'Content-Type: application/json' \
-d '{
"to": "toemail@mail.com",
"from": "frommail@mail.com <name>",
"subject": "Email of test",
"message": "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}'