Versions in this module Expand all Collapse all v1 v1.0.2 Mar 26, 2021 Changes in this version + const ErrBlocked + const ErrExceededMessagingLimits + const ErrFullInbox + const ErrMailboxBusy + const ErrNeedMAILBeforeRCPT + const ErrNoRelay + const ErrNoSuchHost + const ErrNotAllowed + const ErrRCPTHasMoved + const ErrServerUnavailable + const ErrTimeout + const ErrTooManyRCPT + const ErrTryAgainLater + func GenerateRandomEmail(domain string) string + func IsAddressValid(email string) bool + type Gravatar struct + GravatarUrl string + HasGravatar bool + type LookupError struct + Details string + Message string + func ParseSMTPError(err error) *LookupError + func (e *LookupError) Error() string + type Mx struct + HasMXRecord bool + Records []*net.MX + type Result struct + Disposable bool + Email string + Free bool + Gravatar *Gravatar + HasMxRecords bool + Reachable string + RoleAccount bool + SMTP *SMTP + Syntax *Syntax + type SMTP struct + CatchAll bool + Deliverable bool + Disabled bool + FullInbox bool + HostExists bool + type Syntax struct + Domain string + Username string + Valid bool + type Verifier struct + func NewVerifier() *Verifier + func (v *Verifier) CheckGravatar(email string) (*Gravatar, error) + func (v *Verifier) CheckMX(domain string) (*Mx, error) + func (v *Verifier) CheckSMTP(domain, username string) (*SMTP, error) + func (v *Verifier) DisableAutoUpdateDisposable() *Verifier + func (v *Verifier) DisableGravatarCheck() *Verifier + func (v *Verifier) DisableSMTPCheck() *Verifier + func (v *Verifier) EnableAutoUpdateDisposable() *Verifier + func (v *Verifier) EnableGravatarCheck() *Verifier + func (v *Verifier) EnableSMTPCheck() *Verifier + func (v *Verifier) FromEmail(email string) *Verifier + func (v *Verifier) HelloName(domain string) *Verifier + func (v *Verifier) IsDisposable(domain string) bool + func (v *Verifier) IsFreeDomain(domain string) bool + func (v *Verifier) IsRoleAccount(username string) bool + func (v *Verifier) ParseAddress(email string) *Syntax + func (v *Verifier) Verify(email string) (*Result, error)