|
|
|
@ -456,6 +456,8 @@ type Mailer struct {
|
|
|
|
|
From string |
|
|
|
|
User, Passwd string |
|
|
|
|
SkipVerify bool |
|
|
|
|
UseCertificate bool |
|
|
|
|
CertFile, KeyFile string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type OauthInfo struct { |
|
|
|
@ -488,6 +490,9 @@ func newMailService() {
|
|
|
|
|
User: sec.Key("USER").String(), |
|
|
|
|
Passwd: sec.Key("PASSWD").String(), |
|
|
|
|
SkipVerify: sec.Key("SKIP_VERIFY").MustBool(), |
|
|
|
|
UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(), |
|
|
|
|
CertFile: sec.Key("CERT_FILE").String(), |
|
|
|
|
KeyFile: sec.Key("KEY_FILE").String(), |
|
|
|
|
} |
|
|
|
|
MailService.From = sec.Key("FROM").MustString(MailService.User) |
|
|
|
|
log.Info("Mail Service Enabled") |
|
|
|
|