domain->getLdhName(); $this->subject("Error: Domain Order $ldhName") ->content("Domain name $ldhName tried to be purchased. The attempt failed.") ->importance(Notification::IMPORTANCE_HIGH); return ChatMessage::fromNotification($this); } public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): EmailMessage { return new EmailMessage((new TemplatedEmail()) ->from($this->sender) ->to($recipient->getEmail()) ->subject('An error occurred while ordering a domain name') ->htmlTemplate('emails/errors/domain_order.html.twig') ->locale('en') ->context([ 'domain' => $this->domain, ])); } }