Ouauth2 outlook email backend for Django
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_outlook_email_backend-1.1.18.tar.gz
.
File metadata
- Download URL: django_outlook_email_backend-1.1.18.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d4ffb891287e6b2bdc6bfea4cf49a7ca3432d9805b1dd012409b7e9105f3e4 |
|
MD5 | 2a140c4adc814e2d13c6d49011d12e72 |
|
BLAKE2b-256 | a7ed2a427d1bece5dbc59108704564077c43b8bfa125d79222b662373e3ab9f3 |
File details
Details for the file django_outlook_email_backend-1.1.18-py3-none-any.whl
.
File metadata
- Download URL: django_outlook_email_backend-1.1.18-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7578195044c63df0747f11654fbc81a20dc5396051ef9486f80a5caf82cc9a5a |
|
MD5 | dd02fb0d5640eee64b610d18cd14c02d |
|
BLAKE2b-256 | 74e766eafbb8a6585ffc8ee97607a2ca6fdf1221eaa2b3742a9e340c4cf44805 |