Skip to content

Commit

Permalink
Change email from field
Browse files Browse the repository at this point in the history
  • Loading branch information
sunRock98 committed Aug 2, 2022
1 parent 6d53b20 commit f7a1d1a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/web/lib/emails/templates/attendee-request-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail {
}

return {
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("booking_submitted_subject", {
eventType: this.calEvent.type,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/emails/templates/forgot-password-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class ForgotPasswordEmail {
protected getNodeMailerPayload(): Record<string, unknown> {
return {
to: `${this.passwordEvent.user.name} <${this.passwordEvent.user.email}>`,
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
subject: this.passwordEvent.language("reset_password_subject"),
html: this.getHtmlBody(),
text: this.getTextBody(),
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/emails/templates/organizer-cancelled-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class OrganizerCancelledEmail extends OrganizerScheduledEmail {
}

return {
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("event_cancelled_subject", {
eventType: this.calEvent.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class OrganizerPaymentRefundFailedEmail extends OrganizerSchedule
}

return {
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("refund_failed_subject", {
eventType: this.calEvent.type,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/emails/templates/organizer-request-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class OrganizerRequestEmail extends OrganizerScheduledEmail {
}

return {
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("event_awaiting_approval_subject", {
eventType: this.calEvent.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class OrganizerRequestReminderEmail extends OrganizerScheduledEma
}

return {
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("event_awaiting_approval_subject", {
eventType: this.calEvent.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class OrganizerRescheduledEmail extends OrganizerScheduledEmail {
filename: "event.ics",
content: this.getiCalEventAsString(),
},
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("rescheduled_event_type_subject", {
eventType: this.calEvent.type,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/emails/templates/organizer-scheduled-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class OrganizerScheduledEmail {
filename: "event.ics",
content: this.getiCalEventAsString(),
},
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.calEvent.organizer.language.translate("confirmed_event_type_subject", {
eventType: this.calEvent.type,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/emails/templates/team-invite-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class TeamInviteEmail {
protected getNodeMailerPayload(): Record<string, unknown> {
return {
to: this.teamInviteEvent.to,
from: `Cal.com <${this.getMailerOptions().from}>`,
from: `Matsharing <${this.getMailerOptions().from}>`,
subject: this.teamInviteEvent.language("user_invited_you", {
user: this.teamInviteEvent.from,
team: this.teamInviteEvent.teamName,
Expand Down

0 comments on commit f7a1d1a

Please sign in to comment.