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 notifiedby email backend.

# my_project/settings.py

Add "notifiedby" into installed apps.

Add the following code:

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

API Keys can be purchased from NotifiedBy.com site

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.4.tar.gz (3.5 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.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_notifiedby-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 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.4.tar.gz
Algorithm Hash digest
SHA256 02bd0247df58f07ba70f70ba7ce0e44b4eec2c8c4fd048dbd77e7e200144f593
MD5 f284d42589d0e6908177dfc6bc59d454
BLAKE2b-256 ceec7399a5dd419ffe628731c4d5cf6fc615bfabae64d7821785fdc14937369a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_notifiedby-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7460e85c3c72059fc0a0af218f4a19a31966e1b00f26b3036751d9689386a452
MD5 5253ee12099affd5f30503fde8d6c4c3
BLAKE2b-256 e67fc91468476c1b5e984d2642ecbda7d6cf66c22788e0995ccac0fe151e83eb

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