From 974ff03127f7aa1fcc2935b3b12bb88693a0467c Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Fri, 26 Aug 2022 19:51:32 +0100 Subject: [PATCH] REPLY_TO in hello@cal.com emails (#3959) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: Nitesh Singh Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: hustle-ps Co-authored-by: JĂșlio Piubello da Silva Cabral Co-authored-by: Matheus Benini Co-authored-by: Peer Richelsen --- packages/emails/templates/attendee-rescheduled-email.ts | 2 +- packages/emails/templates/attendee-scheduled-email.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/emails/templates/attendee-rescheduled-email.ts b/packages/emails/templates/attendee-rescheduled-email.ts index 9413735325..e7e079d1ac 100644 --- a/packages/emails/templates/attendee-rescheduled-email.ts +++ b/packages/emails/templates/attendee-rescheduled-email.ts @@ -10,7 +10,7 @@ export default class AttendeeRescheduledEmail extends AttendeeScheduledEmail { }, to: `${this.attendee.name} <${this.attendee.email}>`, from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`, - replyTo: this.calEvent.organizer.email, + replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email], subject: `${this.attendee.language.translate("rescheduled_event_type_subject", { eventType: this.calEvent.type, name: this.calEvent.team?.name || this.calEvent.organizer.name, diff --git a/packages/emails/templates/attendee-scheduled-email.ts b/packages/emails/templates/attendee-scheduled-email.ts index d2f5559d47..8a86a0393b 100644 --- a/packages/emails/templates/attendee-scheduled-email.ts +++ b/packages/emails/templates/attendee-scheduled-email.ts @@ -65,7 +65,7 @@ export default class AttendeeScheduledEmail extends BaseEmail { }, to: `${this.attendee.name} <${this.attendee.email}>`, from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`, - replyTo: this.calEvent.organizer.email, + replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email], subject: `${this.t("confirmed_event_type_subject", { eventType: this.calEvent.type, name: this.calEvent.team?.name || this.calEvent.organizer.name,