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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_notifiedby-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b7545dd2289a1e77ac59158cc19ff0fa3bbf43e92d2c056e3e7acc651be87f3e
MD5 a49faa9d3c1c50f3f18dca2c95398663
BLAKE2b-256 b7ffb808eb145dc86825370ed8b8fd4156c9726d3665ffc123603765447a77c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_notifiedby-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0463fd9e4f9e45d02ce116cf9da124a2ec0221f6bfa7dd25e9dc8406b3342d7
MD5 1d5c1977ce5f5a3df49dae605995ff48
BLAKE2b-256 ca0c3323c5b28631660a1dd52200708d615206ab886a2fa384921f6490a0a84e

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