package
0.0.0-20240610144030-fe476faecb85
Repository: https://github.com/eilenc/ecommon.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
Getting started
Documentation
type Mail struct {
host string //smtp server host
port int //smtp server port
username string //smtp auth username
password string //smtp auth passworld
sender string
callBack func(ids string, sendErr, linkErr error) //async send callback
}
AsyncSendMail()
异步发送邮件,可以在Mail
中设置 callbackSendMail()
发送邮件,等待发送返回
Example broadcast
具体代码请参考example
文件夹
-
填写smtp服务地址端口以及认证的用户名密码