Hi Nadun-5457,
Welcome to Microsoft Q&A.
Azure doesn't offer smtp servers by default. You have to use SendGrid email delivery service that supplies your virtual machine with an SMTP relay.
Please refer to SQL Server Database Mail configured with the Send Grid Email Service and Configure Database Mail on SQL Server Azure VM using T-SQL which might help.
Best Regards,
Amelia
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.