Graph API • PowerShell Automation • FreeDNS Integration • Workflow 8 Étapes • Connector Management
POST https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id={client_id}
&client_secret={client_secret}
&scope=https://graph.microsoft.com/.default
POST https://graph.microsoft.com/v1.0/users/{user_id}/sendMail
Authorization: Bearer {access_token}
Content-Type: application/json
{
"message": {
"subject": "Test Email",
"body": {
"contentType": "HTML",
"content": "<h1>Hello</h1>"
},
"toRecipients": [
{ "emailAddress": { "address": "recipient@example.com" } }
]
}
}
FreeDNS permet de créer des subdomains gratuits pour vérification Office 365 via HTTP (.well-known)
/.well-known/microsoft-identity-association.json
{
"associatedApplications": [
{
"applicationId": "{client_id}"
}
]
}
| Limite | Valeur | Notes |
|---|---|---|
| Emails par jour | 10,000 | Par tenant, reset à minuit UTC |
| Messages par minute | 30 | Rate limit strict |
| Recipients par message | 500 | To + Cc + Bcc combinés |
| Taille message max | 35 MB | Après encodage base64 |
| Domaines par tenant | 900 | Domaines vérifiés max |
| Warmup recommandé | 4 semaines | 50 → 100 → 500 → 2000 → 10000/jour |
| Jour | Volume | Jour | Volume |
|---|---|---|---|
| J1-3 | 50/jour | J15-17 | 1000/jour |
| J4-7 | 100/jour | J18-21 | 2000/jour |
| J8-10 | 200/jour | J22-25 | 5000/jour |
| J11-14 | 500/jour | J26+ | 10000/jour |