aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mailer
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mailer')
-rw-r--r--modules/mailer/mail.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go
index 53455fc012..e6217e3dad 100644
--- a/modules/mailer/mail.go
+++ b/modules/mailer/mail.go
@@ -183,3 +183,9 @@ func SendCollaboratorMail(r macaron.Render, u, doer *models.User, repo *models.R
SendAsync(msg)
return nil
}
+
+func SendTestMail(u *models.User) {
+ msg := NewMessage([]string{u.Email}, "Gogs Test Email!", "Gogs Test Email!")
+
+ SendAsync(msg)
+}