You can send the email through setting up of alerts in Azure Monitor - AzureSQL and Azure Managed Instance,
You can use the Log Analytics to run the queries in the Azure Monitor and then set up the alerts as well. I would definitely recommend doing the POC for testing this.
Let me know if you need any further information.
Regards
Navtej S