summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-03 12:51:53 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-03 12:51:53 -0400
commit63baf76ab2f4a510b4fb981e81feb5ae533b1639 (patch)
treef3f3c26c3a02e4d30399b6b039bc96e1dcd48a5a /modules/setting
parent9c3aa6936acc16a4b127874dea5a5519d20e44e1 (diff)
downloadgitea-63baf76ab2f4a510b4fb981e81feb5ae533b1639.tar.gz
gitea-63baf76ab2f4a510b4fb981e81feb5ae533b1639.zip
Fix #214
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 8cca57efed..2f64511a12 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -330,6 +330,7 @@ func newSessionService() {
type Mailer struct {
Name string
Host string
+ From string
User, Passwd string
}
@@ -363,6 +364,7 @@ func newMailService() {
User: Cfg.MustValue("mailer", "USER"),
Passwd: Cfg.MustValue("mailer", "PASSWD"),
}
+ MailService.From = Cfg.MustValue("mailer", "FROM", MailService.User)
log.Info("Mail Service Enabled")
}