mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
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.
11 lines
261 B
Modula-2
11 lines
261 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
|
|
)
|