Log redacted email provider errors and diagnose sender configuration (#57)

This commit is contained in:
Stephan D committed 2026-10-17 11:39:05 +02:00
1 parent c1d28e705e
commit 3e4e496037
8 files changed
+327 -23

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ type Outcome struct {
State model.State
Code string
RetryAfter time.Duration
// Provider diagnostics are sanitized operational data, not public failures.
HTTPStatus int
ProviderError string
ProviderMessage string
}
type Sender interface {
Send(context.Context, string, model.Email) Outcome