zitadel/internal/notification/channels/smtp/config.go
2023-03-16 17:24:30 +00:00

19 lines
259 B
Go

package smtp
type Config struct {
SMTP SMTP
Tls bool
From string
FromName string
}
type SMTP struct {
Host string
User string
Password string
}
func (smtp *SMTP) HasAuth() bool {
return smtp.User != "" && smtp.Password != ""
}