feat(04-03): select memory, log, and SMTP mail drivers from config

- Load mail.* and SUMMER_MAIL__ overrides to pick memory, log, or smtp
- Log headers and text without credentials; SMTP uses explicit TLS and go-mail
- Reject CR/LF headers and invalid addresses and surface driver errors once

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-09-18 14:02:23 +02:00
parent 1e515971c9
commit 1b7245661d
6 changed files with 519 additions and 6 deletions

1
go.mod
View File

@@ -17,6 +17,7 @@ require (
github.com/spf13/cobra v1.10.2
github.com/testcontainers/testcontainers-go v0.44.0
github.com/testcontainers/testcontainers-go/modules/postgres v0.44.0
github.com/wneessen/go-mail v0.8.1
github.com/yuin/goldmark v1.8.6
golang.org/x/term v0.46.0
golang.org/x/text v0.40.0