zitadel/internal/notification/channels/smtp/config.go
Miguel Cabrerizo fd00ac533a
feat: add reply-to header in email notification (#6393)
* feat: add reply-to header to smtp messages

* fix: grpc reply_to_address min 0 and js var name

* fix: add missing translations

* fix merge and linting

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2023-08-29 09:08:24 +02:00

20 lines
306 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 != ""
}