Skip to content
YoyoFx edited this page Dec 9, 2020 · 2 revisions
smtpConnection := email.New("smtp.exmail.qq.com", "[email protected]", "smtpPassword")

res := smtpConnection.SendMail("[email protected]", errValue, "This is subject", "Hi! <br><br> This is body")

if !strings.Contains(res.Error(), errMessage) {
    t.Errorf("Test failed on Tos: %s", errValue)
}