emailutil

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadFormat        = errors.New("invalid format")
	ErrUnresolvableHost = errors.New("unresolvable host")
)

Functions

func DialTimeout

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

DialTimeout returns a new Client connected to an SMTP server at addr. The addr must include a port, as in "mail.example.com:smtp".

func GetName

func GetName(email string) string

GetName get name of email

func IsCompanyEmail

func IsCompanyEmail(email string) (bool, string, error)

IsCompanyEmail checks if email is a company email

func IsKnowHost

func IsKnowHost(host string) bool

func LookMX

func LookMX(domain string) ([]string, error)

func ValidateFormat

func ValidateFormat(email string) error

func ValidateHost

func ValidateHost(email string) (err error)

func VerifyEmailFormat

func VerifyEmailFormat(email string) (bool, string)

VerifyEmailFormat

Types

This section is empty.

Jump to

Keyboard shortcuts

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