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)
- type Configuration
- type GoMail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadFormat = errors.New("invalid format") ErrUnresolvableHost = errors.New("unresolvable host") )
View Source
var Config = Configuration{
Host: "smtp.qq.com",
Port: "25",
Username: "",
Password: "",
From: "",
}
Config default configuration
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 ¶
type Configuration ¶ added in v0.2.0
Configuration for mail
Click to show internal directories.
Click to hide internal directories.