Skip to main content

Django Mailersend (Djmailer)

tests codecov python-versions PyPI GitHub

Djmailer

Content

Requirements

Python 3.8+
The package has 2 required dependencies:

Installation

This project uses celery to send emails, so you need to set up celery for your project first.

If you have already configured celery and a broker for it, it will be enough to run the following command to install:

pip install djmailer

If you are going to install and configure celery to use redis run the following command:

pip install djmailer[redis]

Then add 'djmailer' to your INSTALLED_APPS.

INSTALLED_APPS = [
    ...
    'djmailer',
]

Django project settings.py file might include following constants:

# djmailer settings

EMAIL_BACKEND = 'djmailer.backend.EmailBackend'
DJMAILER_FROM_EMAIL = 'verified@mail.com'
DJMAILER_FROM_NAME = 'Verified Name'
MAILERSEND_API_KEY = 'YOUR_MAILERSEND_API_KEY'

In order for celery to be able to detect tasks in django-mailsend, you need to add package to the task detection function in the configuration file (usually celery.py).

...
app.autodiscover_tasks(packages=['djmailer', ])

Also in the repository on GitHub there is an example of a Django project on which everything is already configured.

Testing

To run tests in your project environment just run following command:

python manage.py test djmailer

Tox is used to test this package.

For run tests with python 3.8, 3.9, 3.10 and 3.11 must be installed

You can use pyenv for dynamic managing python versions

To run tests, install and run tox with the following commands:

# install tox
pip install tox
# run tox
tox

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for djmailer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djmailer 0.0.1
File Size Uploaded
djmailer-0.0.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djmailer 0.0.1
File Interpreter ABI Platform
djmailer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / djmailer-0.0.1.tar.gz

Download URL djmailer-0.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
08c460dd6a2db4bb3376b92602031545bc7f7e94d1db2084f52c8e8c938ca221
BLAKE2b-256 checksum
How to use checksums
94c8b442b5abe815ce227563911a98320508cadf61b0fa91ab08a0ca7863d828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / djmailer-0.0.1-py3-none-any.whl

Download URL djmailer-0.0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
662f6f8162e6a3351f29e912e01c4e77384a78702085c10b8868208c6f9b6298
BLAKE2b-256 checksum
How to use checksums
a2100f5d3dae1efbe15e39c8cf517b3ac0808f64194f21d848e9ba13322b4b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page