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
Close
Hashes for django_outlook_email_backend-1.1.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc2c1ae67094331926bccaeea8563f6d1c31b7571eb7c05c26b0f9e61ef560a |
|
MD5 | d0afb780d3d721d7adf26bdbc60cc0f8 |
|
BLAKE2b-256 | 38e4444f3603521a85cbe6ebacbabf2ea073d281afd3f4ca934a251bdff27c8c |
Close
Hashes for django_outlook_email_backend-1.1.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d410b3f51c0abd5b34d718cd75437001f1b109d0eba03a9ff950d184a75b447 |
|
MD5 | 11df6f274588c195f1b2569ae60d564f |
|
BLAKE2b-256 | 9cef733b78d2aef89c3863360fa6ccc57a03837e0e7e14a95a4709c49e295092 |