Files
2025-08-05 15:20:32 -07:00

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
}