I want to disable email notification for clients whose non_email_customers flag is set to true. I think the best solution would be to create a plugin for:
Magento Framework Mailsend TransportInterface :: sendMessage ()
but i do not know how to get a client object there. Getting it from a client session is not the best solution, I suppose, because of the mail coming from the adminhtml zone. Any ideas how to solve this problem?