Scheduling infrastructure for absolutely everyone.
add organizer as reply-to email (#5203)
Carina Wollendorfer4d04a4d9a6f5
diff --git a/packages/features/ee/workflows/api/scheduleEmailReminders.ts b/packages/features/ee/workflows/api/scheduleEmailReminders.tsindex a52e59893fd..f0361b47820 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.tsindex cb332d3e056..5f680735e54 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({