Let Claude send email without asking, for approved people only
Learn it once here, then teach it. First the basics, then the build by hand, then the same build with AI doing the clicking.
The project in five sentences
The company's Claude already has the built-in Microsoft 365 connector. It can send email, but Claude stops and asks "may I send this?" every time.
A few people want Claude to send without that stop.
We do not touch the built-in connector. Everyone keeps it, with the asking.
We add a second connector. It is a small program we host on Azure. It has one job: send an email through Microsoft Graph.
Only approved people can use it, and it can only send from approved mailboxes.
Two separate paths. The top one stays as it is. The blue one is what we build, with three controls on it.
Lock 1 · Who
Microsoft sign-in decides who can connect. Not on the list means no sign-in.
Lock 2 · Which mailbox
Exchange lets our program send only from mailboxes we tagged. Our program keeps its own list too.
3 · The switch
In Claude, the Owner sets this one tool to "Always allow". That is what removes the asking.
The one idea to keep
Claude's approval prompt is a human safety check. We remove it on purpose, so the locks and limits have to do its job.
Do we even need to build it? checked Dec 2, 2026
Know this before the client asks.
Since Nov 9, 2026 an Owner can set the built-in connector's send tool to "Always allow".
On Claude Enterprise, roles can give that to one group while everyone else stays on "Needs approval". So part of this may need no code.
Reasons to still build: the plan is Team (no roles), they need to send from a shared mailbox (the built-in one sends only as the signed-in person), or they want their own limits and their own log.
Ten cards, about three minutes each. Every card has the plain words to say, the exact version for you, and one question the student is likely to ask.
01
Connector, tool, MCP server
3 min
Plain words
Claude by itself can only write text. A connector gives it hands. Each thing the hands can do is a tool, like "search mail" or "send mail". An MCP server is the program that offers the tools. MCP is the agreed language between Claude and that program.
Exact
A remote MCP server is a web address. Anthropic's cloud calls it, not the user's laptop. So it must be on the public internet, HTTPS, port 443.
The server tells Claude each tool's name, what it does and what inputs it takes. Claude decides when to call it. The server does the real work.
Ours has one tool: send_email(to, subject, body, from_mailbox).
"Custom connector" is Claude's name for an MCP server you add yourself by URL. It works on every Claude plan.
"Is the MCP server an AI?"No. It is ordinary code with no AI inside. Claude is the AI. The server only carries out requests that pass its checks.
02
Always allow, Needs approval, Blocked
3 min
Plain words
Every tool in Claude has a setting. Needs approval: Claude shows what it wants to do and waits for a click. Always allow: Claude just does it. Blocked: Claude cannot use it.
Exact check on the day
The setting is per connector and per tool. "Send" can be Always allow on our connector and Needs approval on the built-in one. That is the whole trick of this project.
The Owner sets it for the company: Organization settings → Connectors. A member can then choose inside what the Owner allows.
Enterprise adds roles: Organization settings → Roles → a role → Connectors tab. Owner's setting against a role: the stricter one wins. Two roles on one person: the more open one wins. "Blocked" in a role hides the connector from those people.
Cowork has its own switch, off by default: Organization settings → Cowork → Allow "Always allow" for connector tools.
"Can't a user just tick 'always allow' in the pop-up?"On Team and Enterprise the approval pop-up has no such tick. The Owner's setting decides.
03
Tenant, Entra ID, Exchange Online, Microsoft Graph
3 min
Plain words
The tenant is the company's own space at Microsoft. Entra ID is the front desk: it knows every user and every app and checks who you are (old name: Azure AD). Exchange Online is where the mailboxes live. Microsoft Graph is the one door programs use to reach all of it.
Exact
Sending mail is one web call: POST https://graph.microsoft.com/v1.0/users/{mailbox}/sendMail
Success is 202 Accepted with an empty answer. It means "taken for delivery", not "delivered".
The message is saved in that mailbox's Sent Items.
Two kinds of mailbox: a user mailbox (a person) and a shared mailbox (orders@, info@: no sign-in of its own).
Graph has no extra price. It comes with Microsoft 365.
"Is Graph the same as Azure?"No. Azure is rented computers, where our server runs. Graph is the door to Microsoft 365 data. Entra ID is the identity desk both of them use.
04
Sign-in and permission
3 min
Plain words
Two different questions. Who are you? And what may you do? OAuth is the standard way a program gets a limited key without ever seeing your password. Think of a valet key: it starts the car and does not open the trunk.
Exact
A member clicks Connect in Claude. A Microsoft sign-in page opens. They sign in at Microsoft, never at our server.
Microsoft hands back a token: a short-lived signed note saying who this is and what the key is for.
Our server checks the signature and reads the name inside (preferred_username, and oid, the person's fixed ID).
The address Microsoft sends people back to on Claude's side is https://claude.ai/api/mcp/auth_callback.
One wrinkle: Claude expects to register itself with the sign-in system automatically. Entra does not allow that. So our server uses a ready-made bridge (FastMCP's AzureProvider): Claude signs in to our server, and our server signs in to Microsoft.
More detail: the route without a bridge
Claude can also talk to Entra directly: when adding the connector choose "Use your own OAuth client" and give the Entra client ID. Then the app's Application ID URI must be the MCP address itself, or sign-in fails with AADSTS9010010. Entra only accepts such an address on a domain the company owns, so this needs a custom domain like mcp.company.com.
Microsoft recommends this route for production. It also lets you lock the web app to Anthropic's address range (160.79.104.0/21). The bridge is easier to get working, so we teach it first.
"Does Claude or our server ever see the password?"No. Password and the phone code stay with Microsoft.
05
App registration and enterprise app
3 min
Plain words
Before a program may use Microsoft sign-in, you introduce it to Entra. Its ID card is the app registration. The same app shows up a second time as an enterprise application. That second place is where you decide who may use it.
Exact
App registrations: what the app is. Its client ID, its return address, its secrets.
Enterprise applications: the app's local account in this tenant (also called the service principal). Here: Properties → "Assignment required?" → Yes. Then Users and groups → add the approved people.
Anyone not on that list gets error AADSTS50105 at sign-in. That is Lock 1.
Adding single users is free. Adding a whole group needs Entra ID P1 (it is inside Business Premium, E3 and E5).
"Why two places for one app?"The registration is the blueprint. The enterprise app is this company's copy, with this company's rules.
06
"As the person" or "as the app"
4 min
Plain words
A program can send mail in two ways. As the person: it borrows the signed-in person's key and can do only what that person can do. As the app: it has its own key, no person needed, and by default it can send from every mailbox in the company.
As the person (delegated)
As the app (application)
Permission name
Mail.Send, plus Mail.Send.Shared for mailboxes the person has rights on
Mail.Send (application)
Admin consent
Not needed
Needed
Reach if nothing limits it
That one person's mail
Every mailbox
How you limit it
The person's own rights in Exchange
An Exchange scope: "only these mailboxes"
Good for
People sending as themselves
Shared mailboxes like orders@
Exact
The limit for "as the app" is Exchange's RBAC for Applications. You give the app the role "Application Mail.Send" over a named set of mailboxes only.
The trap: if someone also ticks Mail.Send for the app inside Entra, that grant covers the whole company and is added on top. The scope then limits nothing. Grant it in Exchange only, never in Entra.
Changes take 30 minutes to 2 hours to become active.
Our build uses "as the app, with a scope", because the client asked for approved mailboxes. If people only ever send as themselves, "as the person" is the safer choice.
"Which one is safer?"As the person: the worst case is one person's own mailbox. As the app is fine when it has a scope and the server checks who is asking.
07
Secrets and tokens
2 min
Plain words
A secret is the app's password. A token is a day pass the app gets by showing its secret. Tokens last about an hour. Secrets last months.
Exact
You make the secret in App registrations → Certificates & secrets. Its value is shown once.
It has an end date. On that day the connector stops working. Put the date in a calendar. This is the classic "it stopped after a year".
It lives in the web app's settings in Azure. Never in the code, never in a chat or an email.
A managed identity is an identity Azure gives the app with no secret at all. A good upgrade later.
"What if the secret leaks?"Delete it in Entra, make a new one, put it in the Azure settings, restart. The old one is dead at once, and the scope limited what it could do anyway.
08
Azure App Service and the B1 size
3 min
Plain words
Azure rents computers. With App Service you hand over your code and Azure runs it as a website with HTTPS. There is no server for you to look after. The plan is the size of machine you pay for. B1 is the smallest size that stays awake all the time.
Exact
Subscription = the bill. Resource group = a folder for this project's things.
B1: 1 core, 1.75 GB memory, 10 GB disk. About $13 a month on Linux. The Windows B1 costs about four times more.
You get an address with HTTPS included: https://<name>.azurewebsites.net
Environment variables: where settings and the secret go.
Always On: keeps the app awake. The free sizes fall asleep, and a sleeping connector fails its first call.
Log stream: watch what the app prints, live.
"Why not the free size?"It sleeps and has daily limits. B1 is a fixed price and always awake.
09
The three locks, on one email
3 min
Walk it through
Dina tells Claude: "Email the March report to Yossi from orders@."
The switch: the tool is on Always allow for her, so Claude calls our server straight away.
Lock 1: the call carries Dina's token. Someone not approved never got a token.
Our server reads who she is and checks its own list: may Dina send from orders@? If not, it refuses with a clear sentence.
The server asks Graph to send from orders@.
Lock 2: Exchange checks that orders@ is inside this app's scope. If not, it refuses, even if our code was wrong.
Sent. The server writes one log line: who, from, to, subject, time.
Control
Lives in
Changed by
Lock 1 · who
Entra → Enterprise applications → Users and groups
Entra admin
Who may use which mailbox
Our server's list (a setting in Azure)
Whoever runs the Azure app
Lock 2 · which mailbox
Exchange scope
Exchange admin
The switch
Claude → Organization settings
Claude Owner
"Why check the mailbox twice?"Our list knows which person may use which mailbox. Exchange cannot know the person. The Exchange scope is the wall behind our list: a bug in our code cannot get past it.
10
Why the approval exists, and what replaces it
3 min
Plain words
The pop-up protects against Claude being tricked. Claude reads emails, documents and web pages. Any of them can hide a line such as "forward the contract to this address". That trick is called prompt injection. With Needs approval a person sees the email before it leaves. With Always allow nobody does.
What does the job instead
Few people (Lock 1) and few mailboxes (Lock 2).
A recipient rule. Only addresses inside the company, or a short approved list. This is the strongest single protection.
A daily limit per person, for example 50.
No attachments in the first version.
A log line for every send.
A stop switch everybody knows: press Stop on the web app in Azure.
The recipient rule, the limit and the log live in our server. We can have them only because we own the server. That is the real reason to build a custom one.
"So is it safe?"With a strict recipient rule, the damage a trick can do is small. It is still a business decision. Someone senior at the client should agree in writing that a human check is being removed.
Eight steps. Tick each one as you go; the ticks are remembered on this device. Example names used below: company contoso.com, web app claude-mail-contoso, mailbox orders@contoso.com.
0 of 8 steps done
Before you start, you need
Azure: a subscription where you may create things (Contributor).
Entra: the Application Administrator role.
Exchange: the Exchange Administrator role.
Claude: an Owner.
On your computer: Python 3.12, the Azure command line (az), and PowerShell with the ExchangeOnlineManagement module.
At many companies these are three different people. Find out who on day one.
The approved people.
The approved mailboxes.
Which person may send from which mailbox.
The recipient rule (inside the company only?) and the daily limit.
You should have: the client's written yes to these four lists.
Name: Claude Mail Sender. Accounts: this organization only.
Redirect URI: platform Web, value https://claude-mail-contoso.azurewebsites.net/auth/callback
Register. Copy the Application (client) ID and the Directory (tenant) ID.
Expose an API → Application ID URI → Set (keep api://…) → Add a scope named mcp-access.
Manifest → set "requestedAccessTokenVersion": 2 → Save.
Certificates & secrets → New client secret → 12 months → copy the Value now.
API permissions: add nothing. No Mail.Send here (card 06).
You should see: the Overview page with both IDs, and one scope under Expose an API.
Properties → Assignment required? → Yes → Save.
Users and groups → Add user/group → pick the approved people.
You should see: only the approved names in the list.
Both IDs in the first command come from Enterprise applications → Overview. Using the Object ID from App registrations is the classic mistake.
PowerShell
Connect-ExchangeOnline
# 1. Introduce our app to Exchange
New-ServicePrincipal -AppId <Application ID> -ObjectId <Object ID> -DisplayName "Claude Mail Sender"
# 2. Tag each approved mailbox
Set-Mailbox -Identity orders@contoso.com -CustomAttribute1 "ClaudeSend"
# 3. A scope: "every mailbox with that tag"
New-ManagementScope -Name "Claude Send Mailboxes" -RecipientRestrictionFilter "CustomAttribute1 -eq 'ClaudeSend'"
# 4. The send role, inside that scope only
New-ManagementRoleAssignment -Name "Claude Mail Send" -App <Application ID> -Role "Application Mail.Send" -CustomResourceScope "Claude Send Mailboxes"
# 5. Check: one approved mailbox, one that is not
Test-ServicePrincipalAuthorization -Identity <Application ID> -Resource orders@contoso.com
Test-ServicePrincipalAuthorization -Identity <Application ID> -Resource ceo@contoso.com
If the company already uses CustomAttribute1 for something, pick a free one (there are 15).
You should see: "InScope: True" for orders@ and "False" for ceo@. Real sending can take 30 minutes to 2 hours to start working.
server.py · a sketch check on the day
import os, json, logging, httpx
from azure.identity.aio import ClientSecretCredential
from fastmcp import FastMCP
from fastmcp.server.auth.providers.azure import AzureProvider
from fastmcp.server.dependencies import get_access_token
TENANT = os.environ["ENTRA_TENANT_ID"]
CLIENT = os.environ["ENTRA_CLIENT_ID"]
SECRET = os.environ["ENTRA_CLIENT_SECRET"]
# The sign-in bridge between Claude and Microsoft
auth = AzureProvider(
client_id=CLIENT, client_secret=SECRET, tenant_id=TENANT,
base_url=os.environ["PUBLIC_URL"],
required_scopes=["mcp-access"],
jwt_signing_key=os.environ["JWT_SIGNING_KEY"],
)
mcp = FastMCP("Approved Mail Sender", auth=auth)
# Who may send from which mailbox, for example
# {"dina@contoso.com": ["dina@contoso.com", "orders@contoso.com"]}
ALLOWED = json.loads(os.environ["ALLOWED_SENDERS"])
INSIDE = "@" + os.environ["COMPANY_DOMAIN"]
graph_login = ClientSecretCredential(TENANT, CLIENT, SECRET)
log = logging.getLogger("mail")
@mcp.tool
async def send_email(to: list[str], subject: str, body: str, from_mailbox: str) -> str:
"""Send a plain-text email from an approved mailbox. It sends at once."""
who = (get_access_token().claims.get("preferred_username") or "").lower()
sender = from_mailbox.lower()
if sender not in ALLOWED.get(who, []):
return f"Refused: {who} may not send from {sender}."
if not all(a.lower().endswith(INSIDE) for a in to):
return "Refused: recipients must be inside the company."
token = await graph_login.get_token("https://graph.microsoft.com/.default")
message = {
"subject": subject,
"body": {"contentType": "Text", "content": body},
"toRecipients": [{"emailAddress": {"address": a}} for a in to],
}
async with httpx.AsyncClient() as web:
r = await web.post(
f"https://graph.microsoft.com/v1.0/users/{sender}/sendMail",
headers={"Authorization": f"Bearer {token.token}"},
json={"message": message},
)
log.info("send who=%s from=%s to=%s subject=%r status=%s",
who, sender, to, subject, r.status_code)
return "Sent." if r.status_code == 202 else f"Microsoft refused ({r.status_code})."
if __name__ == "__main__":
mcp.run(transport="http", host="0.0.0.0", port=8000)
Next to it, a file requirements.txt with four lines: fastmcp, azure-identity, aiohttp, httpx.
This sketch shows every idea in about 50 lines. Library details change, so the real file is written against that day's docs (in the AI lesson, the AI does it). FastMCP's Azure page
More detail: two things the sketch leaves out
The daily limit. About ten more lines: count sends per person per day and refuse above the limit.
Remembering sign-ins. The bridge keeps each person's sign-in. If it keeps them only in memory, everyone must click Connect again after a restart. For real use, store them on the app's disk or in a small database, encrypted. FastMCP's page calls this client_storage.
You should be able to say: where it finds out who is asking, where each of the two refusals happens, and where the log line is written.
Terminal
az login
# creates the folder, the B1 plan and the web app, and uploads the code
az webapp up --name claude-mail-contoso --resource-group rg-claude-mail --sku B1 --runtime "PYTHON:3.12" --location eastus
az webapp update --name claude-mail-contoso --resource-group rg-claude-mail --https-only true
az webapp config set --name claude-mail-contoso --resource-group rg-claude-mail --always-on true --startup-file "python server.py"
# watch it start
az webapp log tail --name claude-mail-contoso --resource-group rg-claude-mail
Then the settings. Azure portal → the web app → Settings → Environment variables → add:
Name
Value
ENTRA_TENANT_ID
Directory (tenant) ID from step 2
ENTRA_CLIENT_ID
Application (client) ID from step 2
ENTRA_CLIENT_SECRET
The secret value. Paste it yourself.
PUBLIC_URL
https://claude-mail-contoso.azurewebsites.net
JWT_SIGNING_KEY
A long random text
ALLOWED_SENDERS
The who-may-use-which-mailbox list from step 1
COMPANY_DOMAIN
contoso.com
You should see: opening https://claude-mail-contoso.azurewebsites.net/mcp in a browser gives a "not authorized" answer. That is correct: alive, and locked.
Add → Custom → Web.
Name: Mail Sender (approved). URL: https://claude-mail-contoso.azurewebsites.net/mcp
Authentication: "Sign in when needed". OAuth client: "Register automatically". Add.
Open the new connector's tool settings. Set send_email to Always allow.
Enterprise only: Roles → the approved role → Connectors tab → Always allow. Every other role → Blocked, which hides it.
Look at the built-in Microsoft 365 connector. Its send tool must still say Needs approval.
The sign-in choices cannot be edited afterwards. To change them, remove the connector and add it again.
You should see: two connectors in the list. Ours shows the label Custom.
Find "Mail Sender (approved)" → Connect.
Sign in at Microsoft. Claude comes back.
Tool permissions → send_email → Always allow.
You should see: the connector marked as connected for that person.
Five tests before you call it done
When something fails: the five usual causes
Sign-in loops or errors at Connect: the redirect address in Entra does not match exactly. It must end in /auth/callback.
AADSTS50105: the person is not on the list. That is Lock 1 working.
"Microsoft refused (403)": the scope is not active yet (wait up to 2 hours) or the mailbox is not tagged.
It can send from any mailbox: someone granted Mail.Send in Entra. Remove it.
It worked for a year, then stopped: the secret ran out. Make a new one.
The same eight steps. The AI does the typing and the clicking. The person does the deciding and the signing in.
Set up once
The Claude desktop app with Claude Code, and the Claude in Chrome extension connected.
In Chrome, the person is already signed in to entra.microsoft.com, portal.azure.com and claude.ai (as Owner).
In the terminal, the person has run az login themself.
The AI does
Reads today's docs and writes server.py.
Runs the Azure commands.
Runs the Exchange commands, after the person signs in.
Fills in the Entra screens in the browser.
Adds the connector in Claude's settings.
Runs the five tests and reads the log.
Writes down every command it ran.
Only the person does
Types passwords and phone codes. The AI must not, and will refuse.
Decides the four lists from step 1.
Handles the secret.
Says yes to anything that changes who has access.
Chooses "Always allow".
Reads each permission question before clicking Allow.
Commands beat clicks
For Azure and Exchange, have the AI use the command line and not the browser. It is faster, it breaks less, and the commands are a written record. Use the browser for the Entra screens, for Claude's settings, and for looking at the result.
Four prompts, one per phase
Change the names and lists to the client's. Start in plan mode.
1 · Plan first
I want to build a small remote MCP server for Claude with one tool, send_email, that sends through Microsoft Graph.
Host: Azure App Service, Linux, B1.
Sign-in: Microsoft Entra ID, only assigned users may connect.
Sending: as the app, limited by Exchange "RBAC for Applications" to mailboxes tagged CustomAttribute1 = ClaudeSend. Do NOT grant Mail.Send in Entra.
Rules inside the server: who may send from which mailbox (ALLOWED_SENDERS), recipients inside COMPANY_DOMAIN only, 50 sends per person per day, one log line per send.
Before you plan, read today's docs for FastMCP's Azure provider, Claude custom connectors, and Exchange RBAC for Applications.
Give me a step-by-step plan. Mark every step that needs me (sign-in, consent, secrets). Change nothing yet.
2 · Code and Azure
Go ahead with the code and the Azure part.
Write server.py and requirements.txt and test them on this computer.
Then, with the az command line (I am already logged in): resource group rg-claude-mail, App Service B1 Linux named claude-mail-contoso, HTTPS only, Always On, and the environment variables.
Do not print any secret and do not ask me for one. Leave ENTRA_CLIENT_SECRET for me.
Save every command you run in SETUP-LOG.md.
Stop and show me before anything that costs money or deletes something.
3 · Entra and Exchange
Now the Microsoft side. In my Chrome I am signed in to entra.microsoft.com.
Create the app registration "Claude Mail Sender": this organization only, redirect https://claude-mail-contoso.azurewebsites.net/auth/callback, expose a scope named mcp-access, access token version 2.
On its enterprise application set "Assignment required" to Yes and add these people: [names].
Do not add any Graph permission.
Then in PowerShell (I will sign in when the window opens) run the Exchange RBAC for Applications commands for these mailboxes: [mailboxes].
Finish with Test-ServicePrincipalAuthorization for one approved mailbox and one that is not, and show me both results.
Ask me before every Save that changes who has access.
4 · Claude and the tests
Last part. In claude.ai I am signed in as Owner.
Add a custom connector: name "Mail Sender (approved)", URL https://claude-mail-contoso.azurewebsites.net/mcp.
Leave the built-in Microsoft 365 connector exactly as it is.
Open the tool permission screen for send_email and stop there. I choose "Always allow" myself.
Then run my five tests, read the Azure log after each one, and give me a short list: test, what should happen, what happened.
More detail: moving the secret so that nobody sees it
One command can make a new secret in Entra and put it straight into the Azure settings. It never appears on the screen or in the chat.
Terminal check on the day
az webapp config appsettings set --name claude-mail-contoso --resource-group rg-claude-mail --output none --settings ENTRA_CLIENT_SECRET="$(az ad app credential reset --id <Application ID> --years 1 --query password -o tsv)"
It replaces the app's older secrets, so use it for the first setup and for the yearly renewal.
Six safety rules
Plan first, then act. Read the plan before saying go.
A test mailbox first. Make claude-test@ and prove everything there before a real mailbox is tagged.
No passwords, codes or secrets to the AI. If a secret lands in the chat, replace it.
The smallest admin role that works. Not Global Administrator if a smaller one does the job.
One yes at a time for anything that changes access or sends real mail.
Keep SETUP-LOG.md. It is the client's documentation and the undo list.
Check the AI's work yourself
"Done" from the AI is a claim. Look at these five things with your own eyes:
Entra → Enterprise applications → Users and groups: the list is exactly the approved people.
Entra → App registrations → API permissions: no Mail.Send.
The two Test-ServicePrincipalAuthorization results: True for the approved mailbox, False for the other.
The five tests from the last lesson.
Azure → the App Service plan: the size says B1.
Why learn the hand way at all?
The AI is fast while things work. When a sign-in fails, somebody has to know which of the three controls is refusing. That is what the Basics are for.
Two different costs. What the client pays Microsoft every month, and what the client pays you. Answer them separately.
Running cost, paid to Microsoft
Item
Per month
Note
App Service plan B1, Linux
≈ $13
Fixed price, on all day. Not per email.
Microsoft Graph
$0
Part of Microsoft 365
Entra app + adding single users
$0
Adding by group needs Entra ID P1
Exchange scope (RBAC for Applications)
$0
Part of Exchange Online
Logs
$0
Log stream is free. Application Insights is optional; the first 5 GB a month are free.
Claude custom connector
$0
Every plan. Hiding it by role needs Enterprise.
Total
≈ $13
$13.14 is the list price for B1 Linux in East US. checked Dec 2, 2026 Confirm the client's region in the Azure price list. The Windows B1 is about four times more.
Time
Work
By hand
With AI
First build, with the five tests
5 to 8 hours
1.5 to 3 hours
Waiting for the Exchange scope
30 minutes to 2 hours, either way
Each year: new secret, check the lists
1 hour
30 minutes
The hours are my estimate for a first build, not a measured figure.
Your price
What you offer
Your price
Teaching: the Basics, then one of the two builds
Building it together in their accounts
Yearly check (new secret, lists)
A two-line answer to "what's the cost?": Microsoft charges about $13 a month to run it. My fee for teaching is separate.
For looking things up while you teach. No need to read it through.
Five questions to ask the client first
Is your Claude plan Team or Enterprise? On Enterprise, roles can hide the connector, and may cover part of the need with no build.
Will people send as themselves, or from shared mailboxes like orders@? This picks "as the person" or "as the app".
Who are the approved people, and which mailbox for each?
May Claude email outside the company? If yes, to which addresses?
Who holds the admin rights for Azure, Entra, Exchange and Claude?
Ten questions you will be asked
Why not just switch off approval on the built-in connector?You can since Nov 9, 2026, but for one group only on Enterprise. And it sends only as the signed-in person: no shared mailboxes, no limits or log of your own.
Does our email text pass through Azure?Yes: Claude → our server → Graph. The server stores nothing except the log line, and we choose what is in it.
Can Claude read mail through this?No. It has one tool: send. Reading stays with the built-in connector.
What happens when someone leaves?Remove them in Enterprise applications → Users and groups, and from the server's list. Their access ends.
How do we add a mailbox?Tag it in Exchange, add it to the server's list, wait up to 2 hours.
Will the receiver see that AI sent it?No. It looks like normal mail from that mailbox. We can add a footer line if the client wants one.
What if Claude sends something wrong?It is sent. Email cannot be taken back. That is why there are few people, a recipient rule and a daily limit.
Can it send attachments?Not in version one. Graph can do it, and it can be added later.
What if Azure is down?The tool answers with an error. Nothing is queued. The built-in connector still works.
How do we switch it off fast?Azure: press Stop on the web app. Or Claude: set the tool to Blocked. Or Entra: turn off sign-in for the enterprise app.
Common mix-ups
Azure, Entra, Graph, Exchange are four names for four jobs: computers, identity, the door, the mailboxes.
App registration is the blueprint. Enterprise application is this company's copy.
For New-ServicePrincipal, use the Object ID from Enterprise applications.
Mail.Send ticked in Entra cancels the scope. Grant it in Exchange only.
202 Accepted means taken, not delivered.
The asking is done by Claude, not by our server. "Always allow" is set in Claude.
Claude calls the server from Anthropic's cloud. An address that works only inside the office will not work.
Words
MCP
The agreed language between Claude and a program that offers tools.
MCP server
The program that offers the tools.
Connector
Claude's name for a connected MCP server.
Tool
One thing a connector can do.
Tenant
The company's own space at Microsoft.
Entra ID
Microsoft's identity desk. Old name: Azure AD.
Exchange Online
Where the mailboxes live.
Microsoft Graph
The door programs use to reach Microsoft 365.
OAuth
How a program gets a limited key without seeing a password.
Token
A short-lived signed pass.
Scope
What a key is for. In Exchange: which mailboxes.
App registration
The app's ID card in Entra.
Enterprise application
The app's local account in one tenant. Also: service principal.
Delegated
The program acts as the signed-in person.
Application permission
The program acts as itself.
Admin consent
An admin's yes on behalf of the whole company.
Client secret
The app's password. It has an end date.
Managed identity
An identity from Azure with no secret.
RBAC for Applications
Exchange's way to limit an app to named mailboxes.
App Service
Azure runs your code as a website.
B1
The smallest plan size that stays awake.
Resource group
A folder for one project's Azure things.
Prompt injection
Hidden text that tricks the AI into doing something.