Email Setup
Interim plan: send transactional email (announcements, contact form, signup notifications) from a free Gmail account at gracetraillife@gmail.com while Google Workspace is deferred. Replies route to info@gracetraillife.org, which forwards to the Gmail.
gracetraillife@gmail.com is created. info@gracetraillife.org is configured as a domain-level forward that lands in the Gmail inbox. Next up: step 1 — generate an app password on the new Gmail — then step 2 swaps the Firebase secrets.How mail flows right now
- Outbound (visible
From):gracetraillife@gmail.com. Plain Gmail can't send-as another address without Workspace credentials, so the public sender is the Gmail account. - Reply-To:
info@gracetraillife.orgon announcement emails. Domain forwarding routes replies into the Gmail inbox. - Inbox copies (scholarship requests, etc.) addressed to
info@gracetraillife.orgride the same forward, so they still land in the Gmail. - Contact-form and signup notifications have their own
Reply-Toset to the submitter, so admins replying frombrett.bennett@me.comreach the parent directly.
All outbound mail still goes through Gmail SMTP via nodemailer in functions/index.js, using Firebase secrets GMAIL_USER + GMAIL_APP_PASSWORD. Affected functions: contact, signupNotify, sendAnnouncementSms, submitScholarshipRequest.
Why interim Gmail instead of Workspace right now
- Workspace is $7–14/user/mo until the troop is approved under the church's 501(c)(3) for Google for Nonprofits — not worth paying now while donations are still admin-gated pending church approval.
- The free Gmail covers every active flow today; the only visible regression is that the public sees
gracetraillife@gmail.comin theFromline instead ofinfo@gracetraillife.org. - When Workspace lands later, the swap is just updating the
GMAIL_USERsecret + app password — no code change required (allfromstrings now template${GMAIL_USER.value()}).
Steps (interim Gmail)
gracetraillife@gmail.com (NEXT)- Sign in at
myaccount.google.comasgracetraillife@gmail.com. - Enable 2-Step Verification if not already on — required before app passwords are available. Security → 2-Step Verification → turn on.
- Go directly to
myaccount.google.com/apppasswords. Google hides this link in the UI in some accounts — bookmark the direct URL. - Enter app name:
Trail Life Cloud Functions→ click Create. - Copy the 16-character password (shown only once). Google displays it with spaces for readability — paste either way works.
Website/ directory:
echo "gracetraillife@gmail.com" | firebase functions:secrets:set GMAIL_USER echo "YOUR_16_CHAR_APP_PASSWORD" | firebase functions:secrets:set GMAIL_APP_PASSWORD firebase deploy --only functions
Or paste the password into the chat and Claude can run these for you (the password is stored only in Firebase, never in source).
from: on GMAIL_USER (done 2026-05-13)nodemailer call sites in functions/index.js now use "Trail Life TX-0139" <${GMAIL_USER.value()}> for the from field instead of a hard-coded info@gracetraillife.org. That way, when Workspace lands and the secret flips back to info@, no code change is needed. Reply-To on announcements remains info@gracetraillife.org (works via the forwarding alias for now, native once Workspace is up).- Send a test announcement to yourself via Send Broadcast.
- Confirm
Fromshows"Grace Trail Life TX-0139" <gracetraillife@gmail.com>. - Reply to the announcement — confirm the reply lands in the Gmail inbox (via the
info@forward). - Submit the public contact form — confirm the leader notification arrives at
brett.bennett@me.com. - Trigger a Family Welcome SMS or Signup notification email and confirm it's delivered cleanly (not flagged spam — DKIM-signed by Gmail automatically for
@gmail.comsenders).
Later: Google Workspace via Google for Nonprofits
Why: Free for verified 501(c)(3)s (normally $14/user/mo). Drop-in replacement — current code already uses Gmail SMTP, a Workspace mailbox works the same way. Public-facing From would become info@gracetraillife.org with no code change. Bonus perks: Google Ad Grants ($10K/mo in free search ads), YouTube Nonprofit Program, 30GB mailbox per user.
- Apply at
https://www.google.com/nonprofits. - Verification via Percent.com (faster than TechSoup, usually a few days).
- Provide IRS 501(c)(3) determination letter — likely the sponsoring church's letter, since TLUSA troops charter under a church's nonprofit status.
- Create Workspace user
info@gracetraillife.org, add MX/SPF/DKIM/DMARC DNS records (sanity-check DKIM = PASS by sending to a non-Google address and viewing "Show original"). - Generate a new app password on that mailbox, point
GMAIL_USER/GMAIL_APP_PASSWORDat it, redeploy. No other code changes.
Backup paths if Google approval is delayed or denied
info@gracetraillife.org · Resend free tier (3000/mo, 100/day) for sending · Swap nodemailer calls for Resend SDK (~10 lines per function) · Add Resend's SPF/DKIM DNS records.- Try to send programmatically via iCloud SMTP (
smtp.mail.me.com) — it's for desktop mail clients and Apple rate-limits/locks accounts that send automated mail. - Skip SPF/DKIM/DMARC — without them, half your mail lands in spam regardless of provider.