diff --git a/padelnomics/.env.example b/padelnomics/.env.example index 6b615ef..36556b4 100644 --- a/padelnomics/.env.example +++ b/padelnomics/.env.example @@ -28,7 +28,7 @@ SESSION_LIFETIME_DAYS=30 # Dev login shortcut (no email needed): /auth/dev-login?email=dev@localhost RESEND_API_KEY= EMAIL_FROM=hello@padelnomics.io -ADMIN_EMAIL=leads@padelnomics.io +LEADS_EMAIL=leads@padelnomics.io # Waitlist mode — set to true to gate routes and capture emails before launch. # Resend audiences are created automatically per blueprint (waitlist-auth, diff --git a/padelnomics/src/padelnomics/core.py b/padelnomics/src/padelnomics/core.py index 11988cf..30e46a6 100644 --- a/padelnomics/src/padelnomics/core.py +++ b/padelnomics/src/padelnomics/core.py @@ -54,7 +54,7 @@ class Config: RESEND_API_KEY: str = os.getenv("RESEND_API_KEY", "") EMAIL_FROM: str = _env("EMAIL_FROM", "hello@padelnomics.io") - ADMIN_EMAIL: str = _env("ADMIN_EMAIL", "leads@padelnomics.io") + LEADS_EMAIL: str = _env("LEADS_EMAIL", "leads@padelnomics.io") ADMIN_EMAILS: list[str] = [ e.strip().lower() for e in os.getenv("ADMIN_EMAILS", "").split(",") if e.strip() ] diff --git a/padelnomics/src/padelnomics/leads/routes.py b/padelnomics/src/padelnomics/leads/routes.py index 8cdc2c6..980ebbb 100644 --- a/padelnomics/src/padelnomics/leads/routes.py +++ b/padelnomics/src/padelnomics/leads/routes.py @@ -95,7 +95,7 @@ async def suppliers(): ) # Notify admin await send_email( - config.ADMIN_EMAIL, + config.LEADS_EMAIL, f"New supplier lead from {g.user['email']}", f"

Location: {form.get('location')}
Courts: {form.get('court_count')}
Budget: {form.get('budget')}
Message: {form.get('message')}

", ) @@ -138,7 +138,7 @@ async def financing(): ), ) await send_email( - config.ADMIN_EMAIL, + config.LEADS_EMAIL, f"New financing lead from {g.user['email']}", f"

Location: {form.get('location')}
Courts: {form.get('court_count')}
Budget: {form.get('budget')}
Message: {form.get('message')}

", ) @@ -351,7 +351,7 @@ async def quote_request(): if is_verified_user: # Existing flow: notify admin immediately await send_email( - config.ADMIN_EMAIL, + config.LEADS_EMAIL, f"[{heat.upper()}] New quote request from {contact_email}", f"

Heat: {heat}
" f"Contact: {form.get('contact_name')} <{contact_email}>
" @@ -483,7 +483,7 @@ async def verify_quote(): heat = lead["heat_score"] or "cool" contact_email = lead["contact_email"] await send_email( - config.ADMIN_EMAIL, + config.LEADS_EMAIL, f"[{heat.upper()}] New quote request from {contact_email}", f"

Heat: {heat}
" f"Contact: {lead['contact_name']} <{contact_email}>
" diff --git a/padelnomics/src/padelnomics/public/templates/suppliers.html b/padelnomics/src/padelnomics/public/templates/suppliers.html index d4cba2b..4aebdb0 100644 --- a/padelnomics/src/padelnomics/public/templates/suppliers.html +++ b/padelnomics/src/padelnomics/public/templates/suppliers.html @@ -670,7 +670,7 @@

My company isn’t listed. How do I get added? -

Email us at {{ config.ADMIN_EMAIL }} with your company details and we’ll add you to the directory within 48 hours.

+

Email us at {{ config.LEADS_EMAIL }} with your company details and we’ll add you to the directory within 48 hours.