package utl import "testing" func TestSmtp_Send(t *testing.T) { smtp := NewSmtp("smtp.163.com", 465, "yyk882002@163.com", "3#initialize", "wen.studio") body := `

hello

this is send from 163.com
` err := smtp.Send([]string{"wedtrav@foxmail.com"}, "hello", body) AssertNil(err, "send mail", t) }