Documentation
¶
Index ¶
- Variables
- func DialTimeout(addr string, timeout time.Duration) (c *smtp.Client, err error)
- func GetName(email string) string
- func IsCompanyEmail(email string) (bool, string, error)
- func IsKnowHost(host string) bool
- func LookMX(domain string) ([]string, error)
- func ValidateFormat(email string) error
- func ValidateHost(email string) (err error)
- func VerifyEmailFormat(email string) (bool, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadFormat = errors.New("invalid format") ErrUnresolvableHost = errors.New("unresolvable host") )
Functions ¶
func DialTimeout ¶
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 IsCompanyEmail ¶
IsCompanyEmail checks if email is a company email
func IsKnowHost ¶
func ValidateFormat ¶
func ValidateHost ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.