golang - 腾讯企业邮箱发送邮件 2 years ago
package main
import (
"github.com/scott-x/email"
"github.com/scott-x/randomCode"
)
func main() {
subject := "Slimx News"
body := `【温馨提示】:有人正在尝试访问你的博客, 验证码为: `
code, _ := randomCode.Random(6)
body += code
//send email
email.SendEmail(subject, body)
}
- 上一篇: golang获取客户端真实IP地址
- 下一篇: goland IDE 破解