diff --git a/packages/features/ee/workflows/api/scheduleEmailReminders.ts b/packages/features/ee/workflows/api/scheduleEmailReminders.ts index a52e59893f..f0361b4782 100644 --- a/packages/features/ee/workflows/api/scheduleEmailReminders.ts +++ b/packages/features/ee/workflows/api/scheduleEmailReminders.ts @@ -154,6 +154,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { html: emailContent.emailBody.html, batchId: batchId, sendAt: dayjs(reminder.scheduledDate).unix(), + replyTo: reminder.booking?.user?.email || senderEmail, }); await prisma.workflowReminder.update({ diff --git a/packages/features/ee/workflows/lib/reminders/emailReminderManager.ts b/packages/features/ee/workflows/lib/reminders/emailReminderManager.ts index cb332d3e05..5f680735e5 100644 --- a/packages/features/ee/workflows/lib/reminders/emailReminderManager.ts +++ b/packages/features/ee/workflows/lib/reminders/emailReminderManager.ts @@ -130,6 +130,7 @@ export const scheduleEmailReminder = async ( text: emailContent.emailBody.text, html: emailContent.emailBody.html, batchId: batchIdResponse[1].batch_id, + replyTo: evt.organizer.email, }); } catch (error) { console.log("Error sending Email"); @@ -154,6 +155,7 @@ export const scheduleEmailReminder = async ( html: emailContent.emailBody.html, batchId: batchIdResponse[1].batch_id, sendAt: scheduledDate.unix(), + replyTo: evt.organizer.email, }); await prisma.workflowReminder.create({