mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +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 != ""
|
||
|
}
|