From 9d7915eb60f13e54a75e7c94fde3573ac8e7dc6f Mon Sep 17 00:00:00 2001 From: JCEEE <0xjceee@proton.me> Date: Tue, 8 Sep 2026 22:41:11 +0100 Subject: [PATCH] address email with resend --- frontend/src/lib/server/email.ts | 8 ++++---- frontend/src/routes/api/email/+server.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/server/email.ts b/frontend/src/lib/server/email.ts index cc330ba..577ba3f 100644 --- a/frontend/src/lib/server/email.ts +++ b/frontend/src/lib/server/email.ts @@ -12,7 +12,7 @@ export async function sendPasswordResetEmail(opts: { const { to, resetLink, famName } = opts; await resend.emails.send({ - from: 'no-reply@famchamp.ai', + from: 'no-reply@walthamstow.xyz', to, subject: `Reset your password for ${famName}`, html: ` @@ -33,7 +33,7 @@ export async function sendParentInviteEmail(opts: { const { to, inviteLink, famName, otp } = opts; await resend.emails.send({ - from: 'no-reply@famchamp.ai', + from: 'no-reply@walthamstow.xyz', to, subject: `You're invited to ${famName} on FamDone`, html: ` @@ -58,7 +58,7 @@ export async function sendAccessUnlockedEmail(opts: { const vars = { famName, codeName, dashboardUrl }; await resend.emails.send({ - from: 'no-reply@famchamp.ai', + from: 'no-reply@walthamstow.xyz', to, subject: template.subject(vars), html: template.html(vars) @@ -73,7 +73,7 @@ export async function sendWelcomeEmail(opts: { const { to, famName, dashboardUrl } = opts; await resend.emails.send({ - from: 'no-reply@famchamp.ai', + from: 'no-reply@walthamstow.xyz', to, subject: `Welcome to FamDone${famName ? `, ${famName}` : ''}!`, html: ` diff --git a/frontend/src/routes/api/email/+server.ts b/frontend/src/routes/api/email/+server.ts index d09e02c..557b3f8 100644 --- a/frontend/src/routes/api/email/+server.ts +++ b/frontend/src/routes/api/email/+server.ts @@ -43,7 +43,7 @@ export async function POST({ request, url }) { const resetUrl = `${url.origin}/login/verify/${token}`; await resend.emails.send({ - from: 'no-reply@famchamp.ai', + from: 'no-reply@walthamstow.xyz', to: email, subject: 'Reset your FamDone password', html: `