Skip to main content

Send emails the easy way

Project description

django-notifiedby

Integrate django-notifiedby as an email backend for Django.

Installation

Using pip:

pip install django-notifiedby

Configuration

Add the django-notifiedby email backend.

# my_project/settings.py

EMAIL_BACKEND = "django-notifiedby.NotifiedByEmailBackend"
NOTIFIEDBY_API_KEY = "YOUR_API_KEY"

Usage

Now the built-in django emails will send through NotifiedBy

from django.core.mail import EmailMessage

email = EmailMessage(
    subject='Subject Here',
    body='Body of the email here',
    from_email='your_email@example.com',
    to=['recipient@example.com'],  # List of recipients
    cc=['cc_recipient@example.com'],  # CC
    bcc=['bcc_recipient@example.com'],  # BCC
)

# Attach a file?
email.attach('example.pdf', b'Some binary data', 'application/pdf')
email.send()

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_notifiedby-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

django_notifiedby-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file django_notifiedby-0.1.0.tar.gz.

File metadata

  • Download URL: django_notifiedby-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for django_notifiedby-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d387a6e50b22586d612dc54bc4aea7ea3e8a180081a201146aede80fc474447d
MD5 72f079226d7263a60362383913010eb4
BLAKE2b-256 8d27617712f3a2c5577e6b7c3605e9cc83f96b997ba14720e0351e0befc1bfbc

See more details on using hashes here.

File details

Details for the file django_notifiedby-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_notifiedby-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97f90e5389abcf201faf58d67a740e684201b7b4a1a71ae3f36cefac5fa14a82
MD5 e8d6160c2df3f3f918c7c6452ee7f922
BLAKE2b-256 577b2c7dc1bcdcf2febc55dd6c2bf01da9a67d0759b10c8aa205acef351832fb

See more details on using hashes here.

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