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.24.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_outlook_email_backend-1.1.24-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_outlook_email_backend-1.1.24.tar.gz
Algorithm Hash digest
SHA256 6f8e3198834cb99bd2393c3ea19b1199abc06af5656152f182f7f61f5593cbc4
MD5 9578840ab4a7c58aeb30d1eddc733122
BLAKE2b-256 ec2e581498886797adcc6f1f131e41a06a3a58504bf36cb1bcfda2031bf229e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_outlook_email_backend-1.1.24.tar.gz:

Publisher: build.yml on enley-es/django-outlook-email-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for django_outlook_email_backend-1.1.24-py3-none-any.whl
Algorithm Hash digest
SHA256 1c2f15bba4cd159cb9e7e692c6960b3cca2c5df9847db66278ba788ab713c184
MD5 4132ca64e298f331a7bcf9bf9e968192
BLAKE2b-256 6ff024a737bad61070f2429506596efe30fe181aa35a844ccade0ec5c23b8bc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_outlook_email_backend-1.1.24-py3-none-any.whl:

Publisher: build.yml on enley-es/django-outlook-email-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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