This commit is contained in:
eddiesoehnel committed 2026-06-09 11:57:54 -06:00
1 parent 38ae828d82
commit 6dda00181f
29 files changed
+1185 -339

No files matched your search

+6 -5
View File
@@ -1,7 +1,7 @@
# Contact Form Deployment
The website form posts to `/api/contact`. The handler is a small FastAPI app in
`api/contact_app.py` and sends mail through SMTP provider.
`api/contact_app.py` and sends mail through Postmark SMTP.
## VM Packages
@@ -15,12 +15,13 @@ python3 -m pip install -r requirements-contact-api.txt
The runtime needs these environment variables. Do not commit their values:
```bash
SMTP_HOST=smtp.example.com
SMTP_HOST=smtp.postmarkapp.com
SMTP_PORT=587
SMTP_USER=<smtp-user>
SMTP_PASSWORD=<smtp-password>
SMTP_USER=<postmark-server-token-or-smtp-user>
SMTP_PASSWORD=<postmark-server-token-or-smtp-password>
CONTACT_TO_EMAIL=<where messages should go>
CONTACT_FROM_EMAIL=<verified SMTP sender address>
CONTACT_FROM_EMAIL=<verified Postmark sender address>
RECAPTCHA_SECRET_KEY=<google-recaptcha-secret-key>
```
## Run Command