@@ -9,6 +9,7 @@ import { preprocessNameFieldDataWithVariant } from "@calcom/features/form-builde
99import { getHideBranding } from "@calcom/features/profile/lib/hideBranding" ;
1010import { getSubmitterEmail } from "@calcom/features/tasker/tasks/triggerFormSubmittedNoEvent/formSubmissionValidation" ;
1111import { UserRepository } from "@calcom/features/users/repositories/UserRepository" ;
12+ import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser" ;
1213import { SENDER_NAME , WEBSITE_URL } from "@calcom/lib/constants" ;
1314import logger from "@calcom/lib/logger" ;
1415import { getTranslation } from "@calcom/lib/server/i18n" ;
@@ -35,7 +36,6 @@ import type {
3536 ScheduleEmailReminderAction ,
3637} from "../types" ;
3738import { WorkflowService } from "./WorkflowService" ;
38- import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser" ;
3939
4040export class EmailWorkflowService {
4141 constructor (
@@ -445,11 +445,14 @@ export class EmailWorkflowService {
445445 ]
446446 : undefined ;
447447
448+ const customReplyToEmail =
449+ evt ?. eventType ?. customReplyToEmail || ( evt as CalendarEvent ) . customReplyToEmail ;
450+
448451 return {
449452 subject : emailContent . emailSubject ,
450453 html : emailContent . emailBody ,
451454 ...( ! evt . hideOrganizerEmail && {
452- replyTo : evt ?. eventType ?. customReplyToEmail || evt . organizer . email ,
455+ replyTo : customReplyToEmail || evt . organizer . email ,
453456 } ) ,
454457 attachments,
455458 sender,
0 commit comments