Skip to content

Commit

Permalink
feat: send from system email
Browse files Browse the repository at this point in the history
  • Loading branch information
mfts committed Feb 25, 2025
1 parent b514c31 commit 95d092e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/(auth)/auth/confirm-email-change/[token]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const VerifyEmailChange = async ({ params: { token } }: PageProps) => {
sendEmail({
to: data.email,
subject: "Your email address has been changed",
system: true,
react: EmailUpdated({
oldEmail: data.email,
newEmail: data.newEmail,
Expand Down
1 change: 1 addition & 0 deletions lib/emails/send-mail-verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const sendEmailChangeVerificationRequestEmail = async (params: {
try {
await sendEmail({
to: email,
system: true,
subject: "Confirm your email address change for Papermark!",
react: emailTemplate,
test: process.env.NODE_ENV === "development",
Expand Down

0 comments on commit 95d092e

Please sign in to comment.