@keyur-shah 's answer definitely gave me the clue. I share my result here - just in case anyone needs it. As suggested, I have created a plugin that hooks into the \Magento\Framework\Mail\Template\TransportBuilder\getTransport method via a before hook.