Documentation ¶
Overview ¶
smtp服务.
Index ¶
Examples ¶
Constants ¶
View Source
const QQ_MAIL_SERVER string = "smtp.qq.com:587"
QQ邮箱服务器.
Variables ¶
This section is empty.
Functions ¶
func SendMail ¶
func SendMail( server string, account string, password string, subject string, content string, to ...string) ftype.Error
发送邮件. 支持群发.
Example ¶
var e error SendMail( QQ_MAIL_SERVER, "iceyee.studio@qq.com", "ddaulujsexzlbidd", "测试-标题", "测试-内容.", "farmer.person@qq.com", "709565591@qq.com") fassert.CheckError(e, "发送邮件.") return
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.