index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
/
mailer
/
mail.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Josh Frye <joshfng@gmail.com>
2016-02-18 17:13:12 -0500
committer
Josh Frye <joshfng@gmail.com>
2016-02-24 09:48:05 -0500
commit
c27038e392c87634c7a85674eeb2336c5074e5a3
(
patch
)
tree
c7c5ebb74c5d4639550eea9f5042073f125466ed
/
modules/mailer/mail.go
parent
d324500959c06e975921790f8770aa5d1bdf2344
(
diff
)
Test mailer button. Addresses #1531
Diffstat
(limited to 'modules/mailer/mail.go')
-rw-r--r--
modules/mailer/mail.go
6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go
index 53455fc0..e6217e3d 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)
+}