public function onPreSend(FilterPreSendEvent $event): void
    {
        foreach ($this->registry->getTransportFilters() as $filter) {
            if ($filter->supports($event->getTransport(), $event->getMessage(), $event->getMailRendered())) {
                $filter->filter($event->getTransport(), $event->getMessage(), $event->getMailRendered());
            }
        }
    }