Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix replyTo bug

Steven Tey521cbce9469e
diff --git a/packages/email/src/index.ts b/packages/email/src/index.ts
index 50208af722..006c424bc0 100644
--- a/packages/email/src/index.ts
+++ b/packages/email/src/index.ts
@@ -4,6 +4,7 @@ import { sendViaNodeMailer } from "./send-via-nodemailer";
export const sendEmail = async ({
email,
+ replyTo,
subject,
from,
bcc,
@@ -19,6 +20,7 @@ export const sendEmail = async ({
if (resend) {
return await sendEmailViaResend({
email,
+ replyTo,
subject,
from,
bcc,
diff --git a/packages/email/src/resend/index.ts b/packages/email/src/resend/index.ts
index 1bf16740dd..48091d04d8 100644
--- a/packages/email/src/resend/index.ts
+++ b/packages/email/src/resend/index.ts
@@ -7,10 +7,10 @@ export const resend = process.env.RESEND_API_KEY
// Send email using Resend (Recommended for production)
export const sendEmailViaResend = async ({
email,
+ replyTo,
subject,
from,
bcc,
- replyTo,
text,
react,
scheduledAt,
@@ -18,7 +18,6 @@ export const sendEmailViaResend = async ({
}: Omit<CreateEmailOptions, "to" | "from"> & {
email: string;
from?: string;
- replyTo?: string;
marketing?: boolean;
}) => {
if (!resend) {