Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Implementation (calcom#11481)
Browse files Browse the repository at this point in the history
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: gitstart-calcom <[email protected]>
  • Loading branch information
3 people authored Sep 22, 2023
1 parent faf974c commit 2a171e9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/emails/templates/attendee-request-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail {
return {
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
subject: `${this.calEvent.attendees[0].language.translate("booking_submitted_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class OrganizerLocationChangeEmail extends OrganizerScheduledEmai
},
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("location_changed_event_type_subject", {
eventType: this.calEvent.type,
name: this.calEvent.attendees[0].name,
Expand Down
1 change: 1 addition & 0 deletions packages/emails/templates/organizer-request-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default class OrganizerRequestEmail extends OrganizerScheduledEmail {
return {
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("awaiting_approval")}: ${this.calEvent.title}`,
html: renderEmail("OrganizerRequestEmail", {
calEvent: this.calEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default class OrganizerRequestReminderEmail extends OrganizerRequestEmail
return {
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.t("event_awaiting_approval_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(),
Expand Down
1 change: 1 addition & 0 deletions packages/emails/templates/organizer-rescheduled-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class OrganizerRescheduledEmail extends OrganizerScheduledEmail {
},
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...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(),
Expand Down
1 change: 1 addition & 0 deletions packages/emails/templates/organizer-scheduled-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default class OrganizerScheduledEmail extends BaseEmail {
},
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
replyTo: [this.calEvent.organizer.email, ...this.calEvent.attendees.map(({ email }) => email)],
subject: `${this.newSeat ? this.t("new_attendee") + ": " : ""}${this.calEvent.title}`,
html: renderEmail("OrganizerScheduledEmail", {
calEvent: clonedCalEvent,
Expand Down

0 comments on commit 2a171e9

Please sign in to comment.