[SOLVED] Can not add custom symfony mailer transport

Hi!

I am trying to add this transport to be used with the symfony mailer:

I installed the package, configured the dsn and added the following to the /config/system/services.yaml

services:
  PMDevelopment\Mailer\Bridge\Microsoft\Transport\GraphTransportFactory:
    tags:
      - { name: mailer.transport_factory }

But the symfony transport will never know about the new Factory.

What do i miss?

TYPO3 does not use the symfony factory on that directly and have a own transport/mailer around that. Please see corresponding TYPO3 Documentation for that.

Not used myself, but there is also a extension published to use the Migrosoft Graph API
with TYPO3 mailing and you may want to use either that extension or at least look into
the code how it has been implemented within the extension:

The extension integrates the API directly and not using the symfony transport for it. But it should be possible to use that implementation and re-use the symfony transport instead of the api directly.

Okay, that explains a lot.

Thank you very much Stefan!