4b411f763f
- Cloudflare Email Worker forwards hello@ and nate@ to Gmail and POSTs parsed MIME email to /api/inbound-email as admin inbox entries - New server route authenticates via shared secret and deduplicates by Message-ID before storing inbound emails as contact submissions - Admin inbox shows "email" badge for inbound messages; reply composer opens blank with auto-subject "Re: [original]" and signature preview - Documents setup steps in cloudflare/email-worker.js and .env.example Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
Bash
# Copy this file to .env and fill in your real values.
|
|
# Never commit .env to version control.
|
|
|
|
# Resend API key for the contact form
|
|
# 1. Sign up free at https://resend.com
|
|
# 2. Go to API Keys and create a new key
|
|
# 3. Paste it below
|
|
RESEND_API_KEY=re_your_api_key_here
|
|
|
|
# Optional: use a separate key for Contacts/Segments if your main key is send-only
|
|
RESEND_CONTACTS_API_KEY=
|
|
|
|
# Email address that receives contact form submissions
|
|
RESEND_TO=hello@versebyversewithnate.us
|
|
|
|
# Optional: automatically add contact form submitters to a Resend Segment
|
|
# Create a Segment in Resend and paste its ID here if you want new contacts grouped.
|
|
RESEND_SEGMENT_ID=
|
|
|
|
# "From" address shown on received emails.
|
|
# During testing you can leave this as-is (uses Resend's shared domain).
|
|
# For production: verify your own domain at resend.com/domains and change this.
|
|
RESEND_FROM=Verse by Verse with Nate <hello@versebyversewithnate.us>
|
|
|
|
# Shared secret for the Cloudflare Email Worker webhook.
|
|
# Must match the WEBHOOK_SECRET variable set in the Cloudflare Worker settings.
|
|
# Generate with: openssl rand -hex 32
|
|
INBOUND_EMAIL_SECRET=
|