d7f2c738 by astaxie

add attach file

1 parent d06c0427
...@@ -20,5 +20,8 @@ func TestMail(t *testing.T) { ...@@ -20,5 +20,8 @@ func TestMail(t *testing.T) {
20 mail.To = []string{"xiemengjun@gmail.com"} 20 mail.To = []string{"xiemengjun@gmail.com"}
21 mail.From = "astaxie@gmail.com" 21 mail.From = "astaxie@gmail.com"
22 mail.Subject = "hi, just from beego!" 22 mail.Subject = "hi, just from beego!"
23 mail.Text = "Text Body is, of course, supported!"
24 mail.HTML = "<h1>Fancy Html is supported, too!</h1>"
25 mail.AttachFile("/Users/astaxie/github/beego/beego.go")
23 mail.Send() 26 mail.Send()
24 } 27 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!