mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
19 lines
265 B
Go
19 lines
265 B
Go
|
package email
|
||
|
|
||
|
type EmailConfig 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 != ""
|
||
|
}
|