Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSMTP ¶
func NewSMTP(smtphost string, port int, username, password, from string, tls, anonymous, skipVerify bool) notify.Sender
NewSMTP return a tls Smtp
func SendMailTest ¶
func SendMailTest()
Types ¶
type MailboxConf ¶
type MailboxConf struct { // 邮件标题 Title string // 邮件内容 Body string // 邮件附件 Attach []string // 收件人列表 RecipientList []string // 发件人账号 Sender string // 发件人密码,QQ邮箱这里配置授权码 Password string From string // SMTP 服务器地址, QQ邮箱是smtp.qq.com SMTPAddr string // SMTP端口 QQ邮箱是25 SMTPPort int Tls bool }
MailboxConf 邮箱配置
Click to show internal directories.
Click to hide internal directories.