How to disable all the emails sending by discourse?

There is no guaranteed way to do this. We have the disable emails site setting, but that will disable all emails, invite included.