sp_send_dbmail is not available on Azure SQL DB, so you will need to use some 3rd party application which can integrate with your application to send mail on it's behalf, or write something like an Azure Function App which can be triggered to send mail instead,