Skip to content

manish87sharma/MailApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MailingApplication

This is a simple Express app, to send email. It is integrated with 3rd party api MailGun and Sendgrid. In case of any 3rd party service down service will fail over to other service provider.

Prerequisites

For development and testing, you will only need Node.js and a node global package, npm, installed in your environnement.

Common setup

Clone the repo and install the dependencies.

git clone https://github.com/manish87sharma/Mailing-Application.git
cd Mailing-Application.
npm install

Steps to start

Note: Default.json file must be updated in config folder before start,or .env file must be added to root directory with keys (mailgun_domain, mailgun_api_key, sendgrid_api_key)

To start the express server, run the following

npm run start

To execute test case, run the following

npm run test

Open http://localhost:3000/sendMail and take a look around.

Endpoint Details

  • Port - 3000
  • EndPoint - sendmail
  • Method - Post
  • Input parameter sample
   {
    "toMail": "[email protected]",
    "ccList": "[email protected],[email protected]",
    "bccList: "test3@example.com"
    }
  • toMail- Mandatory, multiple email Id comma separated
  • ccList- Optional, multiple email Id comma separated
  • bccList- Optional, multiple email Id comma separated
  • Email Id should have valid email format
  • Max 10 email Id are allowed in field

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published