diff --git a/utils/mail_test.go b/utils/mail_test.go index a75c8681..c0535ed5 100644 --- a/utils/mail_test.go +++ b/utils/mail_test.go @@ -20,5 +20,8 @@ func TestMail(t *testing.T) { mail.To = []string{"xiemengjun@gmail.com"} mail.From = "astaxie@gmail.com" mail.Subject = "hi, just from beego!" + mail.Text = "Text Body is, of course, supported!" + mail.HTML = "

Fancy Html is supported, too!

" + mail.AttachFile("/Users/astaxie/github/beego/beego.go") mail.Send() }