feat(site): email launch-list capture with a PHP/MySQL endpoint

A signup form in the closing section posts to subscribe.php (ships in the build): PDO/MySQL, honeypot, idempotent insert, optional mail() notify. DB creds live in a gitignored config kept above the web root; schema and setup in server/.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-17 19:09:39 -05:00
1 parent b978dacd4f
commit 9a34ab0699
6 files changed
+264

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?php
/**
* Copy this to `subscribe.config.php` and fill in real values.
*
* Place the real file ONE LEVEL ABOVE the web root if you can (so it is never
* web-servable), e.g. /home/USER/subscribe.config.php when the docroot is
* /home/USER/green-tea.expressive-tea.io/. subscribe.php looks there first,
* then falls back to sitting next to it.
*
* Never commit the real subscribe.config.php — it holds the DB password.
*/
return [
'dsn' => 'mysql:host=localhost;dbname=YOUR_DB;charset=utf8mb4',
'user' => 'YOUR_DB_USER',
'pass' => 'YOUR_DB_PASSWORD',
'notify' => 'support@expressive-tea.io', // set to '' to skip notification emails
];