Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: send from system email

Marc Seitz95d092e67c86
diff --git a/app/(auth)/auth/confirm-email-change/[token]/page.tsx b/app/(auth)/auth/confirm-email-change/[token]/page.tsx
index de70b83f..28f07660 100644
--- a/app/(auth)/auth/confirm-email-change/[token]/page.tsx
+++ b/app/(auth)/auth/confirm-email-change/[token]/page.tsx
@@ -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,
diff --git a/lib/emails/send-mail-verification.ts b/lib/emails/send-mail-verification.ts
index 74b0c197..b104b4d6 100644
--- a/lib/emails/send-mail-verification.ts
+++ b/lib/emails/send-mail-verification.ts
@@ -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",