https://github.com/iamwebwiz/sendgrid-spam-detector
Send email to an address using Sendgrid's v3 API with Node and check for spam records belonging to the email address
https://github.com/iamwebwiz/sendgrid-spam-detector
express node sendgrid sendgrid-api sendgrid-spam-detector
Last synced: 8 months ago
JSON representation
Send email to an address using Sendgrid's v3 API with Node and check for spam records belonging to the email address
- Host: GitHub
- URL: https://github.com/iamwebwiz/sendgrid-spam-detector
- Owner: iamwebwiz
- Created: 2019-08-28T19:16:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T03:57:10.000Z (about 3 years ago)
- Last Synced: 2025-06-25T19:02:15.111Z (8 months ago)
- Topics: express, node, sendgrid, sendgrid-api, sendgrid-spam-detector
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sendgrid spam detector
> Send email using sendgrid and fetch spam reports related to the email address
### Setup
Clone the repository and navigate into the directory
```bash
git clone https://github.com/iamwebwiz/sendgrid-spam-detector.git && cd sendgrid-spam-detector
```
Install dependencies
```bash
npm install
```
Setup application
```bash
npm run app:setup
```
Copy the following to `.env`
```
APP_PORT=4000
MAIL_TO_ADDRESS=
MAIL_FROM_ADDRESS=test@mail.com
MAIL_FROM_NAME='Test User'
SENDGRID_API_KEY=
```
Set the value of `SENDGRID_API_KEY` to the API key gotten from Sendgrid's dashboard
Run the app
```bash
npm run app:start
```
Launch Postman and fire up a `POST` request to http://localhost:{PORT}/sendmail/sendgrid