16 lines
608 B
Go
16 lines
608 B
Go
|
|
package config
|
||
|
|
|
||
|
|
// EmailConfig 邮件配置
|
||
|
|
type EmailConfig struct {
|
||
|
|
Enabled bool `mapstructure:"enabled"`
|
||
|
|
Host string `mapstructure:"host"`
|
||
|
|
Port int `mapstructure:"port"`
|
||
|
|
Username string `mapstructure:"username"`
|
||
|
|
Password string `mapstructure:"password"`
|
||
|
|
FromAddress string `mapstructure:"from_address"`
|
||
|
|
FromName string `mapstructure:"from_name"`
|
||
|
|
UseTLS bool `mapstructure:"use_tls"`
|
||
|
|
InsecureSkipVerify bool `mapstructure:"insecure_skip_verify"`
|
||
|
|
Timeout int `mapstructure:"timeout"`
|
||
|
|
}
|