Golang Envie email Jordan-Wright
auth := smtp.PlainAuth("", "[email protected]", "<Your password>", "smtp.163.com")
p, _ := email.NewPool("smtp.163.com:25", 4, auth)
e := email.NewEmail()
e.From = "Ping Ye <[email protected]>"
e.To = []string{"[email protected]"}
e.Subject = "Find the big secret!"
e.Text = []byte("Ping is so handsome and intelligent~")
p.Send(e, 10*time.Second)
TP