You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
319 B

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", "[email protected]")
m.SetHeader("Subject", "unit test")
d.SendMail(m)
})
}