Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_outlook_email_backend-1.1.18.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_outlook_email_backend-1.1.18.tar.gz.

File metadata

File hashes

Hashes for django_outlook_email_backend-1.1.18.tar.gz
Algorithm Hash digest
SHA256 39d4ffb891287e6b2bdc6bfea4cf49a7ca3432d9805b1dd012409b7e9105f3e4
MD5 2a140c4adc814e2d13c6d49011d12e72
BLAKE2b-256 a7ed2a427d1bece5dbc59108704564077c43b8bfa125d79222b662373e3ab9f3

See more details on using hashes here.

File details

Details for the file django_outlook_email_backend-1.1.18-py3-none-any.whl.

File metadata

File hashes

Hashes for django_outlook_email_backend-1.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 7578195044c63df0747f11654fbc81a20dc5396051ef9486f80a5caf82cc9a5a
MD5 dd02fb0d5640eee64b610d18cd14c02d
BLAKE2b-256 74e766eafbb8a6585ffc8ee97607a2ca6fdf1221eaa2b3742a9e340c4cf44805

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page