NODEJS EMAIL PROVIDER
EMAIL PROVIDER SERVICE USING NODEJS
Ingredients used
- NodeJS (static web server for Heroku)
- ExpressJS
- Promises/Callbacks
- NPM
- MailGun Service
- SendGrid Service
Installation Process
- Download the zipped file
- Run
npm install
- Run
npm start
oryarn start
- Use POSTMAN client to nagivate to main endpoint:
http://localhost:7000/api/
##Heroku Deployment
Main URL endpoint: https://mysterious-shore-61618.herokuapp.com/api
or to post email: https://mysterious-shore-61618.herokuapp.com/api/send-email
Usage
To use the email service provider, use send-email
endpoint; use POST
method, and provide the following body
paramaeters:
to
fields in comma separated valuessubject
fieldtext
fieldcc
fields in comma separated valuesbcc
fields in comma separated values