8000 GitHub - albinojunior/node-sendmail: A Node API for send mail with html(.hbs) templates.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

albinojunior/node-sendmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node sendmail API

Node API for send mails html(.hbs) templates.

1. Installing

Install dependencies

$ npm i

Installing pm2

$ npm i -g pm2

Environments

Copy .env.example to .env and set environments

2. Running

$ npm start
  • stop applications:
$ npm stop

3. Examples

  • 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"
}'

About

A Node API for send mail with html(.hbs) templates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0