Skip to content

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

feat: add replyTo in resend email

Marc Seitz4daa6286001a
diff --git a/lib/resend.ts b/lib/resend.ts
index c144a643..0ff7c8a4 100644
--- a/lib/resend.ts
+++ b/lib/resend.ts
@@ -18,6 +18,7 @@ export const sendEmail = async ({
verify,
test,
cc,
+ replyTo,
scheduledAt,
unsubscribeUrl,
}: {
@@ -29,6 +30,7 @@ export const sendEmail = async ({
verify?: boolean;
test?: boolean;
cc?: string | string[];
+ replyTo?: string;
scheduledAt?: string;
unsubscribeUrl?: string;
}) => {
@@ -52,7 +54,7 @@ export const sendEmail = async ({
: "Marc from Papermark <[email protected]>",
to: test ? "[email protected]" : to,
cc: cc,
- replyTo: marketing ? "[email protected]" : undefined,
+ replyTo: marketing ? "[email protected]" : replyTo,
subject,
react,
scheduledAt,