add to address

This commit is contained in:
Constantin Simonis 2025-02-13 17:01:52 +01:00
parent 373defb0f0
commit df540b1d98
Signed by: csimonis
GPG Key ID: 3878FF77C24AF4D2

View File

@ -28,7 +28,7 @@ class TicketEmailService
->htmlTemplate('email/order.html.twig') ->htmlTemplate('email/order.html.twig')
->subject('Abiball Ticket') ->subject('Abiball Ticket')
->from(new Address($this->senderMail, 'Noreply')) ->from(new Address($this->senderMail, 'Noreply'))
->to($payment->getCustomer()?->getEmail()) ->to(new Address($payment->getCustomer()?->getEmail(), $payment->getCustomer()?->getFirstname() . ' ' . $payment->getCustomer()?->getLastname()))
->context([ ->context([
'payment' => $payment, 'payment' => $payment,
'qr' => (new QRCode())->render($this->generateUrl($payment)) 'qr' => (new QRCode())->render($this->generateUrl($payment))