How it works
1 minClaude has ready-made connectors, like Microsoft 365. Yours can send email, but it asks "may I send this?" every time. That stays as it is, for everyone.
We add a second connector of your own: a small program on your Azure account with one tool, "send email". It does not ask. Three things keep it safe:
- Only people you approve can connect. Microsoft sign-in checks this.
- Only mailboxes you approve can send. Exchange checks this.
- Firm rules: recipients inside your company only, at most 50 emails per person a day, and a record of every email.
Why Claude asks today. Claude reads emails and web pages, and a hidden line in one of them could try to trick it into sending something. Without the question, the three checks above are your protection. Keep them strict.
Before you start
2 minFour sign-ins
| Account | Where | What you need |
|---|---|---|
| Claude | claude.ai, the Claude desktop app, and the Claude in Chrome extension | The Owner of your company's Claude. On a Pro plan, your own account. |
| Azure | portal.azure.com | A subscription with a payment card. None yet? Create one, about 10 minutes. |
| Entra | entra.microsoft.com | An admin login |
| Exchange | Opens by itself when needed | An Exchange admin login |
Entra and Exchange are usually your IT person. Have them next to you, with their phone for the sign-in codes. Claude installs any other tools it needs on your computer, and asks first.
Decide three things
Fill these in. Your answers go straight into the prompts below. They stay in this browser and are not sent anywhere.
Build it
2 min to read · about 1 hour to doOpen Claude Code in the Claude desktop app. Paste each prompt, read Claude's plan, and say yes step by step. Claude does the typing and the clicking. You sign in and you decide.
Five habits
- Plan first. Let Claude plan, read the plan, then say go.
- Read before you say yes. Every "may I?" from Claude is a real decision.
- Passwords and codes are yours. Type them yourself. Never give them to Claude.
- Ask why. If a step is unclear, ask Claude to explain it before going on.
- Check, don't trust. "Done" is a claim. Look for yourself.
-
Step 1 · The plan
Claude5 minRead it first
After: read the plan. Ask about anything unclear, then say go. -
Step 2 · The Microsoft side
Claude15 minYour IT person signs in when Claude asks.
Read it first
After: Claude shows two test results: True for an approved mailbox, False for another. Microsoft then needs 30 minutes to 2 hours before sending works, which is why this step comes early. -
Step 3 · The program on Azure
Claude20 minRead it first
After: your web app exists in Azure and its size says B1. -
Step 4 · Put in the secret
You3 minThe secret is the program's password. You handle it, not Claude.
- entra.microsoft.com → App registrations → Claude Mail Sender → Certificates & secrets → New client secret → 12 months → Add.
- Copy the Value. It is shown only once.
- portal.azure.com → your web app → Settings → Environment variables →
ENTRA_CLIENT_SECRET→ paste → Apply. - Put the end date in your calendar, one week early.
-
Step 5 · Add it in Claude
Claude, then you10 minRead it first
Then you do two things:
- Set send_email to Always allow. On Team or Enterprise the Owner does this once for the company. On Pro, each person does it in their own Claude.
- Each approved person: Customize → Connectors → Mail Sender (approved) → Connect → sign in with Microsoft.
Check it
1 minFive tests. Tick each one. The ticks are remembered on this device.
Change it later
2 minFor each change, ask Claude Code in one sentence. Change the parts in [brackets].
Add a person
Add [email] to Claude Mail Sender: assign them in Entra and let them send from [mailboxes].
Then they click Connect in their Claude.
Remove a person
Remove [email] from Claude Mail Sender, in Entra and in the list of who may send.
They are stopped at once.
Add a mailbox
Let Claude Mail Sender send from [mailbox]: tag it in Exchange and allow [people] to use it.
It starts working within 2 hours.
Renew the secret, once a year
Do step 4 again before the end date. If you forget, the connector stops on that day.
Switch it off now
portal.azure.com → your web app → Stop. Start brings it back.
Cost and help
1 minCost: about $13 a month to Azure for the B1 web app on Linux. Microsoft Graph, Entra and Exchange cost nothing extra.
If something goes wrong
- Microsoft refuses someone at sign-in: they are not approved yet. Add them.
- "Microsoft refused (403)": the mailbox rule is not active yet, so wait up to 2 hours. Or the mailbox was never added.
- It worked for a year, then stopped: the secret ran out. Do step 4 again.
- Anything else: ask Claude Code the sentence below.
The Claude Mail Sender connector fails with [what you see]. Read the log and SETUP-LOG.md and tell me why. Change nothing yet.