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:
1 parent
b978dacd4f
commit
9a34ab0699
6 files changed
+264
No files matched your search
@@ -0,0 +1,7 @@
|
||||
-- Launch-list table for subscribe.php. Run once against the green-tea DB.
|
||||
CREATE TABLE IF NOT EXISTS subscribers (
|
||||
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
email VARCHAR(254) NOT NULL UNIQUE,
|
||||
created_at DATETIME NOT NULL,
|
||||
ip VARCHAR(45) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in new issue
Block a user