Skip to content

deepakputhraya/mailcheck

Repository files navigation

Mailcheck

Go library to verify, detect invalid, spam and junk email id.

Features:

Usage

go get github.com/deepakputhraya/mailcheck

Example

package main

import (
	"fmt"
	"github.com/deepakputhraya/mailcheck"
)

var emails = []string{"[email protected]", "[email protected]", "[email protected]"}

func main() {
	for _, email := range emails {
		// Skipped error handling
		details, _ := mailcheck.GetEmailDetails(email)
		fmt.Println(email)
		fmt.Printf("Valid : %v; Disposable : %v; Free : %v; Role Based : %v\n",
			details.IsValid,
			details.IsDisposable,
			details.IsFree,
			details.IsRoleBased)
		fmt.Println("-----")
	}
}

API

The library can also be accessed through an API.

https://mailcheck-go.herokuapp.com/[email protected]

About

Golang library to verify email and categorize them as disposable, free & role-based.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages