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"

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.2.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.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_notifiedby-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 556b754817681e66ab3f8d267f534855f336fb9553175af8f405e8c30a4bd88b
MD5 e12a45d32c398198e9e9981f3cb2486d
BLAKE2b-256 1710216281b013f198704c2d45d4b265d89e7cad75f5c9aa7eb986fca112b26c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_notifiedby-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e649edd57d371c1adaa19afcb31841541a59d1a91299731647dd99cc2d6f354
MD5 bb205ff405836788f8de4e2fdd895406
BLAKE2b-256 9a3af0233996ecae4aac69b423e87419375b8e60ab6891d2d917793d6f7c8b26

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