📌  相关文章
📜  golang 发送电子邮件 jordan-wright - Go 编程语言 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:01.287000             🧑  作者: Mango

代码示例1
auth := smtp.PlainAuth("", "pingyeaa@163.com", "", "smtp.163.com")
p, _ := email.NewPool("smtp.163.com:25", 4, auth)

e := email.NewEmail()
e.From = "Ping Ye "
e.To = []string{"xxxxxx@qq.com"}
e.Subject = "Find the big secret!"
e.Text = []byte("Ping is so handsome and intelligent~")

p.Send(e, 10*time.Second)