mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
19 lines
259 B
Go
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 != ""
|
|
}
|