From 31acb29da1bf6becfce9ef274c60c1750150ecd5 Mon Sep 17 00:00:00 2001 From: dommango-sys <251805093+dommango@users.noreply.github.com> Date: Mon, 31 Aug 2026 18:08:31 -0400 Subject: [PATCH] fix: restore to_email/to_name as an EmailJS recipient stopgap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Live-verified after merging #4: the template's "To email" field is still {{to_email}}, so removing these params made every send 422 with "the recipients address is empty" (reproduced directly against the EmailJS API). This restores the previous routing-to-sender behavior so the form works again immediately. Real fix is a one-time EmailJS dashboard change (hard-code "To email" to Dom's address on template_51fi6xw) per docs/plans/01-reconnect-live-plumbing.md step 3 — once that's done, revert this commit. --- lib/services/emailjs.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/services/emailjs.ts b/lib/services/emailjs.ts index cdc048c..780f74e 100644 --- a/lib/services/emailjs.ts +++ b/lib/services/emailjs.ts @@ -49,12 +49,19 @@ export async function sendContactEmail({ } try { + // Stopgap: the EmailJS template's "To email" field is still {{to_email}}, + // so omitting these makes every send 422 with "recipients address is + // empty" (confirmed live 2026-08-31). Routes to the sender, not Dom, until + // the template is hard-coded to his address — see docs/plans/01-reconnect-live-plumbing.md + // step 3. Remove to_name/to_email again once that's done. const response = await emailjs.send( serviceId, templateId, { from_name: fromName, from_email: fromEmail, + to_name: fromName, + to_email: fromEmail, reply_to: fromEmail, message }