Email mark.mullings@blackdice.ai on every toolkit submission

Adds an SMTP-based notification (server/mailer.js) that fires whenever
a visitor registers or downloads an ROI report, configured via
NOTIFY_EMAIL/SMTP_* env vars.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 16:23:31 +05:00
co-authored by Claude Sonnet 5
parent 214efa2bce
commit 28041e6d15
6 changed files with 89 additions and 2 deletions
+4
View File
@@ -98,6 +98,10 @@ Everything in `public/` is published by `npm run build`; delete `standalone.html
`server/` is a small Express + SQL service that receives the webhook events
(`POST /api/webhook`). Point `VITE_CRM_WEBHOOK_URL` at it and set `VITE_CRM_PROVIDER=webhook`.
It also emails a notification to `NOTIFY_EMAIL` (see `server/.env.example`) every time a
visitor registers or downloads an ROI report. Set `SMTP_HOST`/`SMTP_USER`/`SMTP_PASSWORD`
to enable it; leave `SMTP_HOST` blank to disable.
## Project map
```