The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update replyTo
Steven Teybd3025357c1e
diff --git a/apps/web/app/api/cron/year-in-review/route.ts b/apps/web/app/api/cron/year-in-review/route.tsindex 8d93d6be7e..83cc875113 100644--- a/apps/web/app/api/cron/year-in-review/route.ts+++ b/apps/web/app/api/cron/year-in-review/route.ts@@ -70,7 +70,7 @@ export async function POST() {email: {from: "Steven from Dub.co <[email protected]>",to: user.email,- reply_to: "[email protected]",+ reply_to: "[email protected]",subject: "Dub Year in Review π",text: "Thank you for your support and here's to another year of your activity on Dub! Here's a look back at your activity in 2024.",react: DubWrapped({diff --git a/apps/web/app/api/stripe/webhook/utils.ts b/apps/web/app/api/stripe/webhook/utils.tsindex 978d13af3a..6aaf2062c4 100644--- a/apps/web/app/api/stripe/webhook/utils.ts+++ b/apps/web/app/api/stripe/webhook/utils.ts@@ -30,7 +30,7 @@ export async function sendCancellationFeedback({sendEmail({email: owner.email,from: "Steven Tey <[email protected]>",- replyToFromEmail: true,+ replyTo: "[email protected]",subject: "Feedback for Dub.co?",text: `Hey ${owner.name ? owner.name.split(" ")[0] : "there"}!\n\nSaw you canceled your Dub subscription${reasonText ? ` and mentioned that ${reasonText}` : ""} β do you mind sharing if there's anything we could've done better on our side?\n\nWe're always looking to improve our product offering so any feedback would be greatly appreciated!\n\nThank you so much in advance!\n\nBest,\nSteven Tey\nFounder, Dub.co`,}),diff --git a/apps/web/emails/index.ts b/apps/web/emails/index.tsindex 31b8de23ed..b93f3188bb 100644--- a/apps/web/emails/index.ts+++ b/apps/web/emails/index.ts@@ -43,7 +43,7 @@ export const sendEmail = async ({subject,from,bcc,- replyToFromEmail,+ replyTo,text,react,scheduledAt,@@ -51,7 +51,7 @@ export const sendEmail = async ({}: Omit<CreateEmailOptions, "to" | "from"> & {email: string;from?: string;- replyToFromEmail?: boolean;+ replyTo?: string;marketing?: boolean;}) => {if (resend) {@@ -60,7 +60,7 @@ export const sendEmail = async ({subject,from,bcc,- replyToFromEmail,+ replyTo,text,react,scheduledAt,diff --git a/apps/web/emails/send-via-resend.ts b/apps/web/emails/send-via-resend.tsindex ca3f88925f..ef06486d06 100644--- a/apps/web/emails/send-via-resend.ts+++ b/apps/web/emails/send-via-resend.ts@@ -6,7 +6,7 @@ export const sendEmailViaResend = async ({subject,from,bcc,- replyToFromEmail,+ replyTo = "[email protected]",text,react,scheduledAt,@@ -14,7 +14,7 @@ export const sendEmailViaResend = async ({}: Omit<CreateEmailOptions, "to" | "from"> & {email: string;from?: string;- replyToFromEmail?: boolean;+ replyTo?: string;marketing?: boolean;}) => {if (!resend) {@@ -32,12 +32,10 @@ export const sendEmailViaResend = async ({? "Steven from Dub.co <[email protected]>": "Dub.co <[email protected]>"),bcc: bcc,- ...(!replyToFromEmail && {- replyTo: "[email protected]",- }),- subject: subject,- text: text,- react: react,+ replyTo,+ subject,+ text,+ react,scheduledAt,...(marketing && {headers: {