diff options
author | Unknwon <u@gogs.io> | 2016-02-24 23:59:17 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-24 23:59:17 -0500 |
commit | baaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb (patch) | |
tree | 2597d4ada58b2d555594dd2152224edc0cd36411 /modules/mailer | |
parent | 5418c2c5e45ba013938666f8c64c0a60a61a1398 (diff) | |
download | gitea-baaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb.tar.gz gitea-baaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb.zip |
Minor fix for #2660
Diffstat (limited to 'modules/mailer')
-rw-r--r-- | modules/mailer/mail.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go index e6217e3dad..440ffdc01f 100644 --- a/modules/mailer/mail.go +++ b/modules/mailer/mail.go @@ -9,6 +9,7 @@ import ( "path" "strings" + "gopkg.in/gomail.v2" "gopkg.in/macaron.v1" "github.com/gogits/gogs/models" @@ -184,8 +185,6 @@ func SendCollaboratorMail(r macaron.Render, u, doer *models.User, repo *models.R return nil } -func SendTestMail(u *models.User) { - msg := NewMessage([]string{u.Email}, "Gogs Test Email!", "Gogs Test Email!") - - SendAsync(msg) +func SendTestMail(email string) error { + return gomail.Send(&Sender{}, NewMessage([]string{email}, "Gogs Test Email!", "Gogs Test Email!").Message) } |