
Softoryze Mailer — Multi-Site Form Backend
Python · FastAPI · SMTP · SQLite · Vanilla JS · Passenger WSGI (cPanel)
Problem
Managing many static marketing sites means each one needs form handling — maintaining a separate backend per site is wasteful and hard to secure.
Solution
Built a lightweight multi-site mailer: one FastAPI service that all sites post to, while keeping each site isolated via site_id + api_key and allowed form types. It handles contact and vendor form submissions over SMTP, sanitizes input and validates emails, applies in-memory rate limiting (10 req/min per site), and logs every sent/failed submission to SQLite with a filterable log endpoint. A no-build browser dashboard manages sites and reviews logs, a drop-in vanilla-JS snippet wires up static HTML forms, and an optional Passenger WSGI bridge supports cPanel-style hosting.
Impact
One backend to power form handling across an entire fleet of static sites — per-site access control, automatic OpenAPI docs, and SQLite audit logging — eliminating per-site server maintenance.
