← Planning Hub

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.

Current status (2026-05-13): Workspace setup is on hold (will revisit once nonprofit approval is in flight). New free 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.org on announcement emails. Domain forwarding routes replies into the Gmail inbox.
  • Inbox copies (scholarship requests, etc.) addressed to info@gracetraillife.org ride the same forward, so they still land in the Gmail.
  • Contact-form and signup notifications have their own Reply-To set to the submitter, so admins replying from brett.bennett@me.com reach 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.com in the From line instead of info@gracetraillife.org.
  • When Workspace lands later, the swap is just updating the GMAIL_USER secret + app password — no code change required (all from strings now template ${GMAIL_USER.value()}).

Steps (interim Gmail)

1
Generate an app password on gracetraillife@gmail.com (NEXT)
App passwords are required because regular Gmail passwords are blocked from SMTP. The app password is a 16-character string scoped to one app — Cloud Functions, in our case.
  1. Sign in at myaccount.google.com as gracetraillife@gmail.com.
  2. Enable 2-Step Verification if not already on — required before app passwords are available. Security → 2-Step Verification → turn on.
  3. Go directly to myaccount.google.com/apppasswords. Google hides this link in the UI in some accounts — bookmark the direct URL.
  4. Enter app name: Trail Life Cloud Functions → click Create.
  5. Copy the 16-character password (shown only once). Google displays it with spaces for readability — paste either way works.
Save the password somewhere temporary (password manager, secure note). We need it for step 2. Once step 2 is done, the password lives in Firebase secrets — you don't need to remember it.
2
Update Firebase secrets
Two commands, then a function redeploy. Run from the 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).

✓
Code: template every from: on GMAIL_USER (done 2026-05-13)
All four 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).
3
Test
  • Send a test announcement to yourself via Send Broadcast.
  • Confirm From shows "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.com senders).

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.

Application path (when church approval clears):
  1. Apply at https://www.google.com/nonprofits.
  2. Verification via Percent.com (faster than TechSoup, usually a few days).
  3. Provide IRS 501(c)(3) determination letter — likely the sponsoring church's letter, since TLUSA troops charter under a church's nonprofit status.
  4. 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").
  5. Generate a new app password on that mailbox, point GMAIL_USER/GMAIL_APP_PASSWORD at it, redeploy. No other code changes.

Backup paths if Google approval is delayed or denied

A
Pay $7/mo for Workspace temporarily
Same setup as above; downgrade to free once nonprofit approval lands.
B
Free combo — iCloud+ custom domain + Resend
iCloud+ custom domain for receiving at 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.
C
Postmark for nonprofits
25,000 emails/year free for verified 501(c)(3)s. Excellent deliverability. SMTP-compatible — minimal code change.
Do NOT:
  • 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.
Last updated 2026-05-13