From 5427c557a1b6bc4b6962936fb25b8eb7a5074ee8 Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Thu, 13 Feb 2025 17:01:52 +0100 Subject: [PATCH] add to address --- src/Service/TicketEmailService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/TicketEmailService.php b/src/Service/TicketEmailService.php index ac54110..41d11bb 100644 --- a/src/Service/TicketEmailService.php +++ b/src/Service/TicketEmailService.php @@ -28,7 +28,7 @@ class TicketEmailService ->htmlTemplate('email/order.html.twig') ->subject('Abiball Ticket') ->from(new Address($this->senderMail, 'Noreply')) - ->to($payment->getCustomer()?->getEmail()) + ->to(new Address($payment->getCustomer()?->getEmail(), $payment->getCustomer()?->getFirstname() . ' ' . $payment->getCustomer()?->getLastname())) ->context([ 'payment' => $payment, 'qr' => (new QRCode())->render($this->generateUrl($payment))