email

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnresolvableHost = "UNRESOLVED_HOST"

Functions

func CatchAll

func CatchAll(app *app.App, email string) (bool, error)

func DialTimeout

func DialTimeout(addr string, timeout time.Duration) (*smtp.Client, error)

func DomainAge

func DomainAge(domain string) (*entity.Domain, error)

func Leaked

func Leaked(app *app.App, email, since string) (*bool, error)

func Split

func Split(email string) (account, host string)

func ValidateEmail

func ValidateEmail(app *app.App, email string) error

Types

type SMTPError

type SMTPError struct {
	Err error
}

func NewSMTPError

func NewSMTPError(err error) SMTPError

func (SMTPError) Code

func (e SMTPError) Code() string

func (SMTPError) Error

func (e SMTPError) Error() string

Jump to

Keyboard shortcuts

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