Skip to content

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

feat: send local emails test inbox

Marc Seitz2262875cd9da
diff --git a/lib/emails/send-deleted-domain.ts b/lib/emails/send-deleted-domain.ts
index 60746508..ce955aa6 100644
--- a/lib/emails/send-deleted-domain.ts
+++ b/lib/emails/send-deleted-domain.ts
@@ -7,5 +7,6 @@ export const sendDeletedDomainEmail = async (email: string, domain: string) => {
to: email,
subject: `Your domain ${domain} has been deleted`,
react: emailTemplate,
+ test: process.env.NODE_ENV === "development",
});
};
diff --git a/lib/emails/send-invalid-domain.ts b/lib/emails/send-invalid-domain.ts
index e3423b23..40211af6 100644
--- a/lib/emails/send-invalid-domain.ts
+++ b/lib/emails/send-invalid-domain.ts
@@ -5,7 +5,8 @@ export const sendInvalidDomainEmail = async (email: string, domain: string, inva
const emailTemplate = InvalidDomainEmail({ domain, invalidDays });
await sendEmail({
to: email,
- subject: `Your domain ${domain} needs to be configured`,
+ subject: `Updated Link – Your domain ${domain} needs to be configured`,
react: emailTemplate,
+ test: process.env.NODE_ENV === "development",
});
};
diff --git a/lib/emails/send-upgrade-plan.ts b/lib/emails/send-upgrade-plan.ts
index 2031acdb..afceb87d 100644
--- a/lib/emails/send-upgrade-plan.ts
+++ b/lib/emails/send-upgrade-plan.ts
@@ -9,5 +9,6 @@ export const sendUpgradePlanEmail = async (params: CreateUserEmailProps) => {
to: email as string,
subject: "Thank you for upgrading to Papermark Pro!",
react: emailTemplate,
+ test: process.env.NODE_ENV === "development",
});
};
diff --git a/lib/emails/send-welcome.ts b/lib/emails/send-welcome.ts
index ba7654f4..2927bccf 100644
--- a/lib/emails/send-welcome.ts
+++ b/lib/emails/send-welcome.ts
@@ -10,5 +10,6 @@ export const sendWelcomeEmail = async (params: CreateUserEmailProps) => {
to: email as string,
subject: "Welcome to Papermark.io!",
react: emailTemplate,
+ test: process.env.NODE_ENV === "development",
});
};
\ No newline at end of file