Skip to content

itswadesh/sendmail-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send email using NodeJS

Complete tutorial can be found at https://www.angularcode.com/simple-project-demonstrates-how-to-send-email-using-nodejs/

Instructions

  • Install NodeJS (nodejs.org)
  • Create an account at sendgrid.com and generate the api key
  • Download or clone this repo
  • Open Command Prompt / Terminal and browse to the project folder
  • Replace the API_KEY at index.js or create a .env file at root of the project and put SENDGRID_API_KEY=YOUR API KEY
  • Run the following commands
npm i
npm start

This will start the application at port 8080 of localhost. Open your browser and point to localhost:8080