address email with resend
This commit is contained in:
@@ -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: `
|
||||||
|
|||||||
@@ -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: `
|
||||||
|
|||||||
Reference in New Issue
Block a user