[New User] - Does App registration expire / cost money for API permissions mail.send through Microsoft Graph?

Bob Jennings 20 Reputation points
2026-06-02T10:49:28.4233333+00:00

Questions:

  1. Will what I have done below mean I will get charged for anything?
  2. Will this ever expire?
  3. If yes to either of the above are there other ways to go about achieving a similar goal?

What I've Done:

I have created an app in python that I would like to interface with my outlook account and be able to send emails via the app. To do so I created an account using the free azure plan and did the following.

I followed these instructions to do so (from AI):
Phase 1: Registering the App with Microsoft

First, you have to tell Microsoft your app exists so they can give it an ID card.

  1. Log into the Microsoft Entra admin center (formerly Azure Active Directory) using your Outlook email.

Navigate to Applications > App registrations in the left sidebar.

Click New registration.

  1. Give it a name

Under Supported account types, select Accounts in any organizational directory and personal Microsoft accounts (this ensures it works for both work and personal Outlook emails).

Click Register.

Once created, you will be taken to the app's dashboard. Save the Application (client) ID—your Python script will need this later.

Phase 2: Granting Email Permissions

Next, you have to tell Microsoft exactly what this app is allowed to do (i.e., send emails).

On your app's dashboard, go to API permissions on the left.

Click Add a permission -> Microsoft Graph -> Delegated permissions.

Scroll down to Mail and check the box for Mail.Send.

Click Add permissions at the bottom.

Phase 3: Setting Up the Login Bridge

Because this is a desktop app, it needs a way to talk to your web browser for that initial login.

On the left sidebar, click Authentication.

Click Add a platform and select Mobile and desktop applications.

Check the box next to http://localhost. (This tells Microsoft it's safe to send the success token back to your local computer after you log in).

  1. Click Configure.

User's image

User's image

Any assistance would be much appreciated :)

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author
Sridevi Machavarapu 33,740 Reputation points Microsoft External Staff Moderator
2026-06-02T11:15:57.1866667+00:00

Hello Bob Jennings

Based on the configuration shown in your screenshots:

  • Creating an App Registration and granting Microsoft Graph delegated permissions such as Mail.Send and User.Read does not incur any charges by itself.
  • The App Registration does not expire. However, access tokens are short-lived by design, and any client secrets or certificates created in the future may have expiration dates that require renewal.
  • For a Python application that sends email from your Outlook account, Microsoft Graph with delegated Mail.Send permission is the recommended approach.

With the current configuration, there are no ongoing costs associated with the App Registration, and it should continue to work unless the application is removed, disabled, or its permissions are changed.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.