replyTo includes the correct email (#20235)

Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com>
This commit is contained in:
Anik Dhabal Babu
2025-03-20 17:16:12 +00:00
committed by GitHub
co-authored by Tushar Bhatt
parent 9a4c8c147b
commit 9bcea0fa01
14 changed files with 44 additions and 14 deletions
@@ -25,7 +25,12 @@ export default class AttendeeDailyVideoDownloadRecordingEmail extends BaseEmail
return {
to: `${this.attendee.name} <${this.attendee.email}>`,
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [
...this.calEvent.attendees
.filter(({ email }) => email !== this.attendee.email)
.map(({ email }) => email),
this.calEvent.organizer.email,
],
subject: `${this.t("download_recording_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -36,7 +36,12 @@ export default class AttendeeDailyVideoDownloadTranscriptEmail extends BaseEmail
return {
to: `${this.attendee.name} <${this.attendee.email}>`,
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [
...this.calEvent.attendees
.filter(({ email }) => email !== this.attendee.email)
.map(({ email }) => email),
this.calEvent.organizer.email,
],
subject: `${this.t("download_transcript_email_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -11,7 +11,12 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail {
return {
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [
...this.calEvent.attendees
.filter(({ email }) => email !== this.attendee.email)
.map(({ email }) => email),
this.calEvent.organizer.email,
],
subject: `${this.calEvent.attendees[0].language.translate("booking_submitted_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -14,7 +14,12 @@ export default class AttendeeRescheduledEmail extends AttendeeScheduledEmail {
}),
to: `${this.attendee.name} <${this.attendee.email}>`,
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [
...this.calEvent.attendees
.filter(({ email }) => email !== this.attendee.email)
.map(({ email }) => email),
this.calEvent.organizer.email,
],
subject: `${this.attendee.language.translate("event_type_has_been_rescheduled_on_time_date", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -40,7 +40,12 @@ export default class AttendeeScheduledEmail extends BaseEmail {
}),
to: `${this.attendee.name} <${this.attendee.email}>`,
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [
...this.calEvent.attendees
.filter(({ email }) => email !== this.attendee.email)
.map(({ email }) => email),
this.calEvent.organizer.email,
],
subject: `${this.calEvent.title}`,
html: await this.getHtml(clonedCalEvent, this.attendee),
text: this.getTextBody(),
@@ -14,7 +14,12 @@ export default class AttendeeUpdatedEmail extends AttendeeScheduledEmail {
}),
to: `${this.attendee.name} <${this.attendee.email}>`,
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [
...this.calEvent.attendees
.filter(({ email }) => email !== this.attendee.email)
.map(({ email }) => email),
this.calEvent.organizer.email,
],
subject: `${this.attendee.language.translate("event_type_has_been_updated", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -16,7 +16,7 @@ export default class OrganizerAddGuestsEmail extends OrganizerScheduledEmail {
}),
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("guests_added_event_type_subject", {
eventType: this.calEvent.type,
name: this.calEvent.attendees[0].name,
@@ -23,7 +23,7 @@ export default class OrganizerDailyVideoDownloadRecordingEmail extends BaseEmail
return {
to: `${this.calEvent.organizer.email}>`,
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("download_recording_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -35,7 +35,7 @@ export default class OrganizerDailyVideoDownloadTranscriptEmail extends BaseEmai
return {
to: `${this.calEvent.organizer.email}>`,
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("download_transcript_email_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -16,7 +16,7 @@ export default class OrganizerLocationChangeEmail extends OrganizerScheduledEmai
}),
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("location_changed_event_type_subject", {
eventType: this.calEvent.type,
name: this.calEvent.attendees[0].name,
@@ -21,7 +21,7 @@ export default class OrganizerRequestEmail extends OrganizerScheduledEmail {
return {
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("awaiting_approval")}: ${this.calEvent.title}`,
html: await this.getHtmlRequestEmail(template, this.calEvent, this.calEvent.organizer),
text: this.getTextBody("event_awaiting_approval"),
@@ -10,7 +10,7 @@ export default class OrganizerRequestReminderEmail extends OrganizerRequestEmail
return {
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("event_awaiting_approval_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -17,7 +17,7 @@ export default class OrganizerRescheduledEmail extends OrganizerScheduledEmail {
}),
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.calEvent.organizer.language.translate("event_type_has_been_rescheduled_on_time_date", {
title: this.calEvent.title,
date: this.getFormattedDate(),
@@ -50,7 +50,7 @@ export default class OrganizerScheduledEmail extends BaseEmail {
}),
from: `${EMAIL_FROM_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
replyTo: [...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.newSeat ? `${this.t("new_attendee")}: ` : ""}${this.calEvent.title}`,
html: await this.getHtml(
clonedCalEvent,