Django outlook email backend
Outlook api email backend for Django
First steps
Retrieve the client id, client secret and tenant id from the Azure portal. Follow this documentation: https://learn.microsoft.com/en-us/azure/api-management/authentication-authorization-overview Add the Mail.send permision to the app in the Azure portal.
Requirements
- Python 3.8+
- Django 5.0, 4.2
Installation
Install using pip...
pip install django-outlook-email-backend
Add 'OUTLOOK_CREDENTIALS' in settings.py
OUTLOOK_CREDENTIALS = {
'OUTLOOK_CLIENT_ID': "XXXXX",
'OUTLOOK_CLIENT_SECRET': "XXXXX",
'OUTLOOK_TENANT_ID': "XXXXX",
}
Add 'EMAIL_BACKEND' in settings.py
EMAIL_BACKEND = "django_outlook_email.django_outlook_email_backend.OutlookEmailBackend"
if you want to use json instead of mime add the following line in settings.py
OUTLOOK_CREDENTIALS["OUTLOOK_SEND_FORMAT"] = "json"
Metadata
Release files for django-outlook-email-backend 1.1.24
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_outlook_email_backend-1.1.24.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_outlook_email_backend-1.1.24-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / django_outlook_email_backend-1.1.24.tar.gz
| Download URL | django_outlook_email_backend-1.1.24.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f8e3198834cb99bd2393c3ea19b1199abc06af5656152f182f7f61f5593cbc4
|
|
BLAKE2b-256 checksum How to use checksums |
ec2e581498886797adcc6f1f131e41a06a3a58504bf36cb1bcfda2031bf229e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2025.
Transparency logRelease files / django_outlook_email_backend-1.1.24-py3-none-any.whl
| Download URL | django_outlook_email_backend-1.1.24-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c2f15bba4cd159cb9e7e692c6960b3cca2c5df9847db66278ba788ab713c184
|
|
BLAKE2b-256 checksum How to use checksums |
6ff024a737bad61070f2429506596efe30fe181aa35a844ccade0ec5c23b8bc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2025.
Transparency log