valmail

package module
v0.0.0-...-a844c80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

valmail

codecov

a GoLang email validator that allows projects to validate emails for free - instead of using pay-to-play SAAS options.

Project Goals and Status

Finished? Feature Description Field / Function Name Field Type
🛠️ Email Reachability How confident are we in sending an email to this address? IsReachable Boolean
Syntax Validation Is the address syntactically valid? ValidSyntax Boolean
MX Record Validation Does the domain of the email have valid MX records in DNS? MXValid Boolean
Disposable Email Address (DEA) Validation Is the address provided by a known disposable email address provider? IsDisposable Boolean
🛠️ SMTP Server Validation Is an email sent to this address deliverable? SMTPValid Boolean
🛠️ Mailbox Disabled Has this address been disabled by the email provider? IsDisabled Boolean
🛠️ Full Inbox Is the inbox of this mailbox full? HasFullInbox Boolean
🛠️ Catch-All Address Is this email a catch all address? IsCatchAll Boolean
🛠️ Gravatar Validation Does this email have a gravatar? HasGravatar Boolean
🛠️ Gravatar URL The URL of the gravatar image for this email (if present) GravatarURL String
🛠️ Has this been Pwned? Has this email been comprimised in a data breach? Pwned Boolean

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailAddress

type EmailAddress struct {
	Username    string // the portion of the address preceeding the last @
	Domain      string // the remainder of the address, following the last @
	Raw         string // the raw address, as input by you
	SyntaxValid bool   // returns true if the email is syntactically correct
	// contains filtered or unexported fields
}

EmailAddress holds a parsed address for functional validation

func Parse

func Parse(address string) (email EmailAddress)

Parse takes a raw address string, and returns an EmailAddress struct for further validation

func (*EmailAddress) IsDEA

func (e *EmailAddress) IsDEA() bool

func (*EmailAddress) MXValid

func (e *EmailAddress) MXValid() bool

Directories

Path Synopsis
internal
dea

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL