mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
21c38b061d
# Which Problems Are Solved Send Email messages as a HTTP call to a relay, for own logic on handling different Email providers # How the Problems Are Solved Create endpoints under Email provider to manage SMTP and HTTP in the notification handlers. # Additional Changes Clean up old logic in command and query side to handle the general Email providers with deactivate, activate and remove. # Additional Context Partially closes #8270 --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
24 lines
351 B
Go
24 lines
351 B
Go
package smtp
|
|
|
|
type Config struct {
|
|
SMTP SMTP
|
|
Tls bool
|
|
From string
|
|
FromName string
|
|
ReplyToAddress string
|
|
}
|
|
|
|
type SMTP struct {
|
|
Host string
|
|
User string
|
|
Password string
|
|
}
|
|
|
|
func (smtp *SMTP) HasAuth() bool {
|
|
return smtp.User != "" && smtp.Password != ""
|
|
}
|
|
|
|
type ConfigHTTP struct {
|
|
Endpoint string
|
|
}
|