Hi @Gurudas ,
You also need to create a relay connector in office 365 if you have prepared your application.
I found this guide which shared the complete operation on how to relay emails through office 365 , this should be helpful to you : Configure Office 365 SMTP relay - ALI TAJRAN
Please Note: Microsoft provides third-party contact information to help you find additional information about this topic. This contact information may change without notice. Microsoft does not guarantee the accuracy of third-party contact information.
If the answer is helpful, 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.