Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi Ved,
Thank you for posting. Make sure if you are using SMTP client submission that requires authentication Microsoft 365 or Office 365 username and password required licensed mailbox.
If you are using SMTP relay which need one or more static IP addresses and your LOB app must have a static IP address to use for authentication with Microsoft 365 or Office 365.
Here's the article which has mentioned comparison of each configuration option and the features they support. See Compare the options
Since you are using Asp.net C# code therefore, I would like to involve our dedicated support team please post your issue in the dotnet-csharp on Microsoft Q&A forum so there experts’ will focus on the issue to get it resolved more efficiently.
Regarding this point, we would truly appreciate your kind understanding. Have a nice day and stay safe!
Best regards,
Shyamal