Skip to content

supuna97/express-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-email with nodemailer

description

This is a simple email sender using express and nodemailer

usage

  1. clone this repo
  2. run npm install
  3. create a .env file in the root directory and add the following:
MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=your email address MAIL_PASSWORD=your password MAIL_ENCRYPTION=tls MAIL_FROM=your email address MAIL_FROM_NAME=your name 
  1. run npm start
  2. open http://localhost:3000/v1/email/send in your postman
  3. send a POST request with the following body:
{ "to": "your email address", "subject": "your subject", "text": "your text" } 
  1. check your email

reference

author

version

1.0.0

Releases

No releases published

Packages

 
 
 

Contributors