Add Exchange SMTP Oauth2 Support (not verified)
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -40,14 +40,23 @@ type search struct {
|
||||
ApiKey string `yaml:"api_key"`
|
||||
}
|
||||
|
||||
type _email_oauth2 struct {
|
||||
Tenantid string `yaml:"tenant_id"`
|
||||
ClientId string `yaml:"client_id"`
|
||||
ClientSecret string `yaml:"client_secret"`
|
||||
Scope string `yaml:"scope"`
|
||||
}
|
||||
|
||||
type email struct {
|
||||
Host string `yaml:"host"`
|
||||
Port string `yaml:"port"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
Security string `yaml:"security"`
|
||||
InsecureSkipVerify bool `yaml:"insecure_skip_verify"`
|
||||
From string `yaml:"from"`
|
||||
Host string `yaml:"host"`
|
||||
Port string `yaml:"port"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
Security string `yaml:"security"`
|
||||
InsecureSkipVerify bool `yaml:"insecure_skip_verify"`
|
||||
From string `yaml:"from"`
|
||||
Auth string `yaml:"auth"`
|
||||
Oauth2 _email_oauth2 `yaml:"oauth2"`
|
||||
}
|
||||
|
||||
type secrets struct {
|
||||
|
||||
Reference in New Issue
Block a user