Socket
Book a DemoInstallSign in
Socket

github.com/XxThunderBlastxX/email-validator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/XxThunderBlastxX/email-validator

v0.0.0-20220903190059-ec108ded20b0
Source
Go
Version published
Created
Source

Email-Validator

Made using Go and Fiber

Prerequisite before running the application

Create .env in root dir of the project and copy all the variables from .env.example and past in .env and assign the values of all the variables.

How to run the application

  • To run the application in development mode:
go run .
  • To make a build of the application:
go build -o email-validator
  • To make a build of the application for windows:
go build -o email-validator.exe

How to send email

  • You will have to POST request to /valid route with body as -
{
    "email": "Email"
}
  • Success Response we receive -
{
    "status": true,
    "error": "",
    "contains_mx": true,
    "mx_record": [
        "Array of MX Records"
    ],
    "contains_spf": true,
    "spf": "SPF Record",
    "contains_dmarc": true,
    "dmarc": "DMARC Record"
}
  • Error Response -
{
    "status": false,
    "error": "Error Message"
}

FAQs

Package last updated on 03 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.