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: `