Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMailAddrCannotEmpty mail server addresses cannot empty ErrMailAddrCannotEmpty = errors.New("addresses cannot be empty") // ErrMailUserCannotEmpty username cannot empty ErrMailUserCannotEmpty = errors.New("username cannot empty") // ErrMailPasswordCannotEmpty password cannot empaty ErrMailPasswordCannotEmpty = errors.New("password cannot empaty") // ErrMailPortCannotEmpty port cannot empty ErrMailPortCannotEmpty = errors.New("port cannot empty") )
Functions ¶
This section is empty.
Types ¶
type MailServer ¶
MailServer 邮件服务器配置信息
func New ¶
func New(username, password, addr string, port int) *MailServer
Click to show internal directories.
Click to hide internal directories.