Registering Application in Azure Portal

To register an application in the Azure portal, do the following:

  1. Sign in to the Azure portal using an account that you want to use for sending emails. The account must have an active subscription.
  2. Register an application. For more information on registering applications, see this Microsoft article.
  3. Select API permissions and grant the application the Mail.Send permission of the Application type for the Microsoft Graph API.
  4. Select Authentication > Platform configurations > Add a platform > Configure platforms > Mobile and desktop applications and specify http://localhost as a redirect URI. For more information, see this Microsoft article.
  5. Record the following data required for acquiring an access token:
  • Directory (tenant) ID
  • Application (client) ID