From 4e3ce77de4995e423640b0bcd9c60c9b7ec9d3a1 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Tue, 16 Dec 2025 09:50:03 +0530 Subject: [PATCH] fix: custom replyTo is not set (#25867) --- .../ee/workflows/lib/service/EmailWorkflowService.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/features/ee/workflows/lib/service/EmailWorkflowService.ts b/packages/features/ee/workflows/lib/service/EmailWorkflowService.ts index 4b55b4dd67..73cc6e2230 100644 --- a/packages/features/ee/workflows/lib/service/EmailWorkflowService.ts +++ b/packages/features/ee/workflows/lib/service/EmailWorkflowService.ts @@ -9,6 +9,7 @@ import { preprocessNameFieldDataWithVariant } from "@calcom/features/form-builde import { getHideBranding } from "@calcom/features/profile/lib/hideBranding"; import { getSubmitterEmail } from "@calcom/features/tasker/tasks/triggerFormSubmittedNoEvent/formSubmissionValidation"; import { UserRepository } from "@calcom/features/users/repositories/UserRepository"; +import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser"; import { SENDER_NAME, WEBSITE_URL } from "@calcom/lib/constants"; import logger from "@calcom/lib/logger"; import { getTranslation } from "@calcom/lib/server/i18n"; @@ -35,7 +36,6 @@ import type { ScheduleEmailReminderAction, } from "../types"; import { WorkflowService } from "./WorkflowService"; -import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser"; export class EmailWorkflowService { constructor( @@ -445,11 +445,14 @@ export class EmailWorkflowService { ] : undefined; + const customReplyToEmail = + evt?.eventType?.customReplyToEmail || (evt as CalendarEvent).customReplyToEmail; + return { subject: emailContent.emailSubject, html: emailContent.emailBody, ...(!evt.hideOrganizerEmail && { - replyTo: evt?.eventType?.customReplyToEmail || evt.organizer.email, + replyTo: customReplyToEmail || evt.organizer.email, }), attachments, sender,