go-common/app/admin/ep/merlin/dao/mail_test.go
2019-04-22 18:49:16 +08:00

21 lines
319 B
Go

package dao
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
"gopkg.in/gomail.v2"
)
var (
m = gomail.NewMessage()
)
func Test_SendMail(t *testing.T) {
Convey("test send mail", t, func() {
m.SetHeader("To", "fengyifeng@bilibili.com")
m.SetHeader("Subject", "unit test")
d.SendMail(m)
})
}