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 steps:https://learn.microsoft.com/en-us/industry/retail/intelligent-recommendations/quickstart-endpoint 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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d4201a770b9ecba3c39bc46b5c6acbb03225b37d0d41ad47a97f7120ad3baa0 |
|
MD5 | 690f6482aa476fcee44b2621a3779ebf |
|
BLAKE2b-256 | b059c6821a5d9d7ac4a3391926168858d07c21f556f96009200ba6e9888a3475 |
Close
Hashes for django_outlook_email_backend-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cad7448be835f310a6bddc86d7adc2632a643de5f8cedd841494f65241b9d20 |
|
MD5 | 3e87aafb9bda5c06ae7a1efb4570e999 |
|
BLAKE2b-256 | 291c294601b9480f8c95daa497972d4c9391ec4dcaec59bcd8e5f6fabb89ac52 |