address email with resend

This commit is contained in:
JCEEE
2026-09-08 22:41:11 +01:00
parent 7ce127f482
commit 9d7915eb60
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ export async function sendPasswordResetEmail(opts: {
const { to, resetLink, famName } = opts; const { to, resetLink, famName } = opts;
await resend.emails.send({ await resend.emails.send({
from: 'no-reply@famchamp.ai', from: 'no-reply@walthamstow.xyz',
to, to,
subject: `Reset your password for ${famName}`, subject: `Reset your password for ${famName}`,
html: ` html: `
@@ -33,7 +33,7 @@ export async function sendParentInviteEmail(opts: {
const { to, inviteLink, famName, otp } = opts; const { to, inviteLink, famName, otp } = opts;
await resend.emails.send({ await resend.emails.send({
from: 'no-reply@famchamp.ai', from: 'no-reply@walthamstow.xyz',
to, to,
subject: `You're invited to ${famName} on FamDone`, subject: `You're invited to ${famName} on FamDone`,
html: ` html: `
@@ -58,7 +58,7 @@ export async function sendAccessUnlockedEmail(opts: {
const vars = { famName, codeName, dashboardUrl }; const vars = { famName, codeName, dashboardUrl };
await resend.emails.send({ await resend.emails.send({
from: 'no-reply@famchamp.ai', from: 'no-reply@walthamstow.xyz',
to, to,
subject: template.subject(vars), subject: template.subject(vars),
html: template.html(vars) html: template.html(vars)
@@ -73,7 +73,7 @@ export async function sendWelcomeEmail(opts: {
const { to, famName, dashboardUrl } = opts; const { to, famName, dashboardUrl } = opts;
await resend.emails.send({ await resend.emails.send({
from: 'no-reply@famchamp.ai', from: 'no-reply@walthamstow.xyz',
to, to,
subject: `Welcome to FamDone${famName ? `, ${famName}` : ''}!`, subject: `Welcome to FamDone${famName ? `, ${famName}` : ''}!`,
html: ` html: `
+1 -1
View File
@@ -43,7 +43,7 @@ export async function POST({ request, url }) {
const resetUrl = `${url.origin}/login/verify/${token}`; const resetUrl = `${url.origin}/login/verify/${token}`;
await resend.emails.send({ await resend.emails.send({
from: 'no-reply@famchamp.ai', from: 'no-reply@walthamstow.xyz',
to: email, to: email,
subject: 'Reset your FamDone password', subject: 'Reset your FamDone password',
html: ` html: `