Skip to content

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

feat: change email domain for verifications

Marc Seitza6008b9cc7db
diff --git a/lib/emails/send-email-verification.ts b/lib/emails/send-email-verification.ts
index 53a79c84..d2a2d2ff 100644
--- a/lib/emails/send-email-verification.ts
+++ b/lib/emails/send-email-verification.ts
@@ -18,7 +18,7 @@ export const sendVerificationEmail = async (
subject: `Verify your email address to access the ${isDataroom ? "dataroom" : "document"}.`,
react: emailTemplate,
test: process.env.NODE_ENV === "development",
- system: true,
+ verify: true,
});
} catch (e) {
console.error(e);
diff --git a/lib/resend.ts b/lib/resend.ts
index 8bc364fe..8ad4dac9 100644
--- a/lib/resend.ts
+++ b/lib/resend.ts
@@ -14,6 +14,7 @@ export const sendEmail = async ({
react,
marketing,
system,
+ verify,
test,
cc,
scheduledAt,
@@ -23,6 +24,7 @@ export const sendEmail = async ({
react: ReactElement<any, string | JSXElementConstructor<any>>;
marketing?: boolean;
system?: boolean;
+ verify?: boolean;
test?: boolean;
cc?: string | string[];
scheduledAt?: string;
@@ -38,9 +40,11 @@ export const sendEmail = async ({
? "Marc from Papermark <[email protected]>"
: system
? "Papermark <[email protected]>"
- : !!scheduledAt
- ? "Marc Seitz <[email protected]>"
- : "Marc from Papermark <[email protected]>",
+ : verify
+ ? "Papermark <[email protected]>"
+ : !!scheduledAt
+ ? "Marc Seitz <[email protected]>"
+ : "Marc from Papermark <[email protected]>",
to: test ? "[email protected]" : to,
cc: cc,
replyTo: marketing ? "[email protected]" : undefined,