From e42b4e70d21ec261ae76b6b5ffed5305e70e687c Mon Sep 17 00:00:00 2001 From: Patrick Robertson Date: Wed, 22 Nov 2023 17:40:21 +0800 Subject: [PATCH] Switch to/from order for the booking information email (to the organizer) Signed-off-by: Patrick Robertson --- lib/Service/Appointments/MailService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Service/Appointments/MailService.php b/lib/Service/Appointments/MailService.php index 52d3b9f87f..c52fb0f369 100644 --- a/lib/Service/Appointments/MailService.php +++ b/lib/Service/Appointments/MailService.php @@ -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');