diff --git a/apps/web/app/api/cron/year-in-review/route.ts b/apps/web/app/api/cron/year-in-review/route.ts index 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 <steven@ship.dub.co>", to: user.email, - reply_to: "support@dub.co", + reply_to: "steven.tey@dub.co", 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.ts index 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 <steven@dub.co>", - replyToFromEmail: true, + replyTo: "steven.tey@dub.co", 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.ts index 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.ts index 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 = "support@dub.co", 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 <steven@ship.dub.co>" : "Dub.co <system@dub.co>"), bcc: bcc, - ...(!replyToFromEmail && { - replyTo: "support@dub.co", - }), - subject: subject, - text: text, - react: react, + replyTo, + subject, + text, + react, scheduledAt, ...(marketing && { headers: {