Browse Source

add `FixedNotifyFrom` key to `Mailer` section

pull/1592/head
Hongcai Deng 9 years ago
parent
commit
7d5c69557e
  1. 2
      modules/setting/setting.go

2
modules/setting/setting.go

@ -542,6 +542,7 @@ type Mailer struct {
SkipVerify bool SkipVerify bool
UseCertificate bool UseCertificate bool
CertFile, KeyFile string CertFile, KeyFile string
FixedNotifyFrom bool
} }
type OauthInfo struct { type OauthInfo struct {
@ -579,6 +580,7 @@ func newMailService() {
UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(), UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(),
CertFile: sec.Key("CERT_FILE").String(), CertFile: sec.Key("CERT_FILE").String(),
KeyFile: sec.Key("KEY_FILE").String(), KeyFile: sec.Key("KEY_FILE").String(),
FixedNotifyFrom:sec.Key("FIXED_NOTIFY_FROM").MustBool(),
} }
MailService.From = sec.Key("FROM").MustString(MailService.User) MailService.From = sec.Key("FROM").MustString(MailService.User)
log.Info("Mail Service Enabled") log.Info("Mail Service Enabled")

Loading…
Cancel
Save