Quote DEFAULT_FROM_EMAIL display name so contact mail sends (#29)
Unit Tests / test (push) Successful in 12s

## Summary
- Closes #28
- Quote `DEFAULT_FROM_EMAIL` display name (`"AI ML Operations, LLC" <info@aimloperations.com>`) so RFC 5322 From parsing succeeds
- Update settings default, email send fallbacks, and `.env` examples

## Problem
Contact form saved leads but notification email to `ryan@aimloperations.com` failed with:
```
Invalid address; only AI ML Operations could be parsed from "AI ML Operations, LLC <info@aimloperations.com>"
```
Comma in unquoted display name treated as address-list separator.

## Test plan
- [ ] Submit contact form in an environment with SMTP configured
- [ ] Confirm lead appears on leads page
- [ ] Confirm email arrives at ryan@aimloperations.com
- [ ] If prod sets `DEFAULT_FROM_EMAIL` in `.env`, ensure that value is also quoted before deployReviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
2026-08-07 08:17:31 -07:00
parent 03bb01664f
commit 85369914c8
6 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=2525
EMAIL_USE_TLS=true
# DEFAULT_FROM_EMAIL=AI ML Operations, LLC <info@aimloperations.com>
# Display name has a comma — must be quoted (RFC 5322)
# DEFAULT_FROM_EMAIL="AI ML Operations, LLC" <info@aimloperations.com>
# Absolute origin for email logo / footer links
PUBLIC_SITE_URL=https://aimloperations.com
# DEFAULT_FROM_EMAIL=AI ML Operations, LLC <info@aimloperations.com>
# Stripe (test keys from https://dashboard.stripe.com/test/apikeys)
STRIPE_SECRET_KEY=