diff --git a/config/mail.go b/config/mail.go index 4b74ef8..35dd845 100644 --- a/config/mail.go +++ b/config/mail.go @@ -5,13 +5,13 @@ import "errors" var _ Validator = (*MailConfig)(nil) type MailConfig struct { - Host string - Port int - SSL bool - AuthType string - Username string - Password string - From string + Host string `mapstructure:"host"` + Port int `mapstructure:"port"` + SSL bool `mapstructure:"ssl"` + AuthType string `mapstructure:"auth_type"` + Username string `mapstructure:"username"` + Password string `mapstructure:"password"` + From string `mapstructure:"from"` } func (m MailConfig) Validate() error {