Skip to content

Commit

Permalink
Switch to/from order for the booking information email (to the organi…
Browse files Browse the repository at this point in the history
…zer)

Signed-off-by: Patrick Robertson <[email protected]>
  • Loading branch information
pjrobertson authored and miaulalala committed Dec 4, 2023
1 parent d36ea67 commit e42b4e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Service/Appointments/MailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ public function sendOrganizerBookingInformationEmail(Booking $booking, Appointme
if ($toEmail === null) {
throw new ServiceException('Organizer has no email set');
}
$fromName = $user->getDisplayName();
$toName = $user->getDisplayName();

$sys = $this->getSysEmail();
$message = $this->mailer->createMessage()
->setFrom([$sys => $fromName])
->setTo([$toEmail => $booking->getDisplayName()]);
->setFrom([$sys => $booking->getDisplayName()])
->setTo([$toEmail => $toName]);


$template = $this->mailer->createEMailTemplate('calendar.confirmOrganizer');
Expand Down

0 comments on commit e42b4e7

Please sign in to comment.