|
|
@ -446,11 +446,12 @@ func newSessionService() {
|
|
|
|
|
|
|
|
|
|
|
|
// Mailer represents mail service.
|
|
|
|
// Mailer represents mail service.
|
|
|
|
type Mailer struct {
|
|
|
|
type Mailer struct {
|
|
|
|
Name string
|
|
|
|
Name string
|
|
|
|
Host string
|
|
|
|
Host string
|
|
|
|
From string
|
|
|
|
From string
|
|
|
|
User, Passwd string
|
|
|
|
User, Passwd string
|
|
|
|
SkipVerify bool
|
|
|
|
SkipVerify bool
|
|
|
|
|
|
|
|
CertFile, KeyFile string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type OauthInfo struct {
|
|
|
|
type OauthInfo struct {
|
|
|
@ -483,6 +484,8 @@ func newMailService() {
|
|
|
|
User: sec.Key("USER").String(),
|
|
|
|
User: sec.Key("USER").String(),
|
|
|
|
Passwd: sec.Key("PASSWD").String(),
|
|
|
|
Passwd: sec.Key("PASSWD").String(),
|
|
|
|
SkipVerify: sec.Key("SKIP_VERIFY").MustBool(),
|
|
|
|
SkipVerify: sec.Key("SKIP_VERIFY").MustBool(),
|
|
|
|
|
|
|
|
CertFile: sec.Key("CERT_FILE").String(),
|
|
|
|
|
|
|
|
KeyFile: sec.Key("KEY_FILE").String(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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")
|
|
|
|