feat(outbound): SMTP relay sender with batching

- Add Sender interface
- Add SMTPRelay sending in batches of 50 recipients per transaction
- Add Fake sender that records messages for tests
This commit is contained in:
tgiachi 2026-11-09 14:52:40 +01:00
commit dd2818d392

2
go.mod
View file

@ -4,11 +4,13 @@ go 1.27.1
require (
github.com/emersion/go-message v0.18.2
github.com/emersion/go-smtp v0.25.1
modernc.org/sqlite v1.62.0
)
require (
github.com/dustin/go-humanize v1.1.0 // indirect
github.com/emersion/go-sasl v0.0.0-20241020182733-b788ff22d5a6 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/ncruces/go-strftime v1.1.0 // indirect