AJ ONeal 79ff9704f1
feat(net/formmailer): contact-form mailer with cohort filter + STARTTLS
New package handling HTTP POST contact forms: ordered []Field config
(GravityForms-compatible input_N defaults), MaxBytesReader body cap,
geoip+ipcohort gating, X-Forwarded-For trust via TrustedProxies CIDRs,
and SMTP submission over STARTTLS. EHLO LocalName is split from the
NewClient peer host so the client identifies itself correctly while
PlainAuth still binds to the real server name. Hot-reloadable success/
error response bodies via func() []byte. Includes a fake-SMTP integration
test that catches StartTLS(nil) regressions.
2026-09-08 15:28:35 -06:00

25 lines
704 B
Modula-2

module github.com/therootcompany/golib/net/formmailer
go 1.26.0
require (
github.com/therootcompany/golib/net/geoip v0.0.0
github.com/therootcompany/golib/net/ipcohort v0.0.0
github.com/therootcompany/golib/sync/dataset v0.0.0
golang.org/x/time v0.15.0
)
require (
github.com/oschwald/geoip2-golang v1.13.0 // indirect
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
golang.org/x/sys v0.45.0 // indirect
)
replace github.com/therootcompany/golib/net/geoip => ../geoip
replace github.com/therootcompany/golib/net/ipcohort => ../ipcohort
replace github.com/therootcompany/golib/sync/dataset => ../../sync/dataset
replace github.com/therootcompany/golib/net/httpcache => ../httpcache