https://github.com/deepakputhraya/mailcheck
Golang library to verify email and categorize them as disposable, free & role-based.
https://github.com/deepakputhraya/mailcheck
email email-validation email-verfication emailvalidation golang junkmail
Last synced: 4 months ago
JSON representation
Golang library to verify email and categorize them as disposable, free & role-based.
- Host: GitHub
- URL: https://github.com/deepakputhraya/mailcheck
- Owner: deepakputhraya
- License: mit
- Created: 2021-04-28T19:17:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-08T08:15:30.000Z (about 5 years ago)
- Last Synced: 2023-07-27T22:02:59.689Z (almost 3 years ago)
- Topics: email, email-validation, email-verfication, emailvalidation, golang, junkmail
- Language: Go
- Homepage: https://mailcheck-go.herokuapp.com/validate?email=elon@tesla.com
- Size: 1.63 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Mailcheck
Go library to verify, detect invalid, spam and junk email id.
#### Features:
- Identify disposable and free email providers
- The API also automatically checks for role-based emails (such as `sales@domain.com` or `team@domain.com`)
## Usage
```shell script
go get github.com/deepakputhraya/mailcheck
```
## Example
```go
package main
import (
"fmt"
"github.com/deepakputhraya/mailcheck"
)
var emails = []string{"elon@tesla.com", "elon@gmail.com", "hello@mailinator.com"}
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.
```txt
https://mailcheck-go.herokuapp.com/validate?email=elon@tesla.com
```