If you wanted to disable all emails from a particular Matomo instance (for example when you restore a database dump in a new test instance), you can edit your config.ini.php and set the following setting under the [General] section:

emails_enabled = 0

This is useful when you’re restoring a database dump that has other people’s email addresses, and you don’t want to send them any emails from the test instance.