Skip to content

sai-koushik-macha/RESTful-API-to-send-email

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful-API-to-send-email

This project is an API in NodeJS using express to send emails using the Gmail REST API

Add your credential.json file and use this

Installation

  • Download and extract Zip file.
  • Change directory to downloaded folder.
cd RESTful-API-to-send-email
npm install
npm start

Test API Endpoints

API for Authorization

GET http://localhost:3000/auth
  • After succesfull authorization API will be at.
     http://localhost:3000/action/auth
  • API for Sending mail give POST request using POSTMAN
Request Type: x-www-form-urlencoded
Request Body:
{
  to: Sender's Email ID
  subject: Email subject text
  message: Message to be sent in body
}

POST http://localhost:3000/action/auth/send

After sending mail you will get successfully email sent message
and you can check mail now. API for Sending mail

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%