Fix #214
This commit is contained in:
parent
9c3aa6936a
commit
63baf76ab2
4 changed files with 5 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue