Documentation ¶ Index ¶ type Mail func (m *Mail) Auth() smtp.Auth func (m *Mail) SendMail(subject string, to []string, body string) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Mail ¶ type Mail struct { Nickname string `json:"nickname"` User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Port string `json:"port"` } Mail 邮件配置 func (*Mail) Auth ¶ func (m *Mail) Auth() smtp.Auth Auth 身份认证 func (*Mail) SendMail ¶ func (m *Mail) SendMail(subject string, to []string, body string) (err error) SendMail 发送邮件 Source Files ¶ View all Source files mail.go Click to show internal directories. Click to hide internal directories.