- Send An Email To Someone
- Create A HTTP POST Request To
- request
url: http://localhost:8080/mail
body {
to: 'email_destination',
title: 'the title of your email',
body: 'the body of your email'
}
- response
status 200
- open your terminal/cmd
- clone this project
- go to the root directory/mail-sender
- install all dependencies with run
npm install
- to start the mail-sender app run
npm start
- install and start the rabbitmq, if you use docker open your terminal/cmd then run
docker run --name rabbitmq -p 5672:5672 rabbitmq
- go to the root directory/mail-service
- create a .env file
USER=YOUR_EMAIL
PASS=YOUR_APP_PASSWORDS
- To Get Your YOUR_APP_PASSWORDS Go To This Link Below
https://support.google.com/accounts/answer/185833
- install all dependencies with run
npm install
- to start the mail-service app run
npm start
Rabbitmq, Nodemailer, full list see package.json