Merge pull request #1511 from ywk253100/170303_bugfix

Fix bug in sending email
This commit is contained in:
Daniel Jiang 2017-03-05 19:13:39 +08:00 committed by GitHub
commit fb77c1a7e3

View File

@ -37,11 +37,12 @@ type Mail struct {
Message string
}
var mc models.Email
var mc *models.Email
// SendMail sends Email according to the configurations
func (m Mail) SendMail() error {
mc, err := config.Email()
var err error
mc, err = config.Email()
if err != nil {
return err
}