aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mailer
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-18 17:13:12 -0500
committerJosh Frye <joshfng@gmail.com>2016-02-24 09:48:05 -0500
commitc27038e392c87634c7a85674eeb2336c5074e5a3 (patch)
treec7c5ebb74c5d4639550eea9f5042073f125466ed /modules/mailer
parentd324500959c06e975921790f8770aa5d1bdf2344 (diff)
downloadgitea-c27038e392c87634c7a85674eeb2336c5074e5a3.tar.gz
gitea-c27038e392c87634c7a85674eeb2336c5074e5a3.zip
Test mailer button. Addresses #1531
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)
+}