From accd869c126d045ee4e600f8110b99dd8d2fdd15 Mon Sep 17 00:00:00 2001 From: martbost Date: Thu, 13 Aug 2026 13:10:41 -0500 Subject: [PATCH] Default payment-email sender to marketingwithmarty.com Both marketingwithmarty.com and mybrandedvoice.com are SendGrid DKIM-authenticated; Marty's sending identity is marketingwithmarty.com, so the default from and the admin label now reflect that. Co-Authored-By: Claude Fable 5 --- public/admin.html | 2 +- server.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/admin.html b/public/admin.html index 7559746..94ea94b 100644 --- a/public/admin.html +++ b/public/admin.html @@ -8,6 +8,6 @@

Matrix View

The entire on-chain matrix — who landed where, with tier, level, directs, and earnings per position. Click a position to drill down.

Add Sponsor

AI Chat

Paste an OpenRouter API key to switch the help chat from canned answers to AI (). Clear it to switch back.

-

Payment Emails (SendGrid)

When a payout hits a member whose sponsor record has a contact email, they get a "you've been paid" email automatically. Paste your SendGrid API key (Branded Voice Coolify app → Environment Variables → SENDGRID_API_KEY).

+

Payment Emails (SendGrid)

When a payout hits a member whose sponsor record has a contact email, they get a "you've been paid" email automatically. Paste your SendGrid API key (Branded Voice Coolify app → Environment Variables → SENDGRID_API_KEY).

Public Page Settings

diff --git a/server.js b/server.js index 755de73..c037af0 100644 --- a/server.js +++ b/server.js @@ -72,9 +72,9 @@ function getSendgridKey() { if (process.env.SENDGRID_API_KEY) return process.env.SENDGRID_API_KEY; try { return fs.readFileSync(SENDGRID_KEY_FILE, 'utf8').trim(); } catch (e) { return ''; } } -// SendGrid is domain-authenticated for mybrandedvoice.com (SPF/DKIM, 2026-07-07) -// — the from address must stay on that domain or DKIM fails. -function emailFrom() { return getConfig().emailFrom || 'The RM Circle Team '; } +// SendGrid is domain-authenticated for marketingwithmarty.com and +// mybrandedvoice.com — the from address must stay on one of those or DKIM fails. +function emailFrom() { return getConfig().emailFrom || 'The RM Circle Team '; } function sendPaidEmail(toEmail, memberName, evt) { const key = getSendgridKey(); if (!key) return;