supuna97 / express-email

This is a simple email sender using express and nodemailer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This is a simple email sender using express and nodemailer

License:Apache License 2.0


Languages

Language:JavaScript 100.0%