Skip to content

Commit 4e3ce77

Browse files
authored
fix: custom replyTo is not set (calcom#25867)
1 parent 0b5b76d commit 4e3ce77

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/features/ee/workflows/lib/service/EmailWorkflowService.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { preprocessNameFieldDataWithVariant } from "@calcom/features/form-builde
99
import { getHideBranding } from "@calcom/features/profile/lib/hideBranding";
1010
import { getSubmitterEmail } from "@calcom/features/tasker/tasks/triggerFormSubmittedNoEvent/formSubmissionValidation";
1111
import { UserRepository } from "@calcom/features/users/repositories/UserRepository";
12+
import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser";
1213
import { SENDER_NAME, WEBSITE_URL } from "@calcom/lib/constants";
1314
import logger from "@calcom/lib/logger";
1415
import { getTranslation } from "@calcom/lib/server/i18n";
@@ -35,7 +36,6 @@ import type {
3536
ScheduleEmailReminderAction,
3637
} from "../types";
3738
import { WorkflowService } from "./WorkflowService";
38-
import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser";
3939

4040
export 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

Comments
 (0)