https://github.com/coderedcorp/cr-sendmail-django
Django email backend which invokes system sendmail binary.
https://github.com/coderedcorp/cr-sendmail-django
django
Last synced: 11 months ago
JSON representation
Django email backend which invokes system sendmail binary.
- Host: GitHub
- URL: https://github.com/coderedcorp/cr-sendmail-django
- Owner: coderedcorp
- License: bsd-3-clause
- Created: 2025-04-11T15:15:00.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-11T18:14:32.000Z (12 months ago)
- Last Synced: 2025-04-11T18:42:06.579Z (12 months ago)
- Topics: django
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cr-sendmail-django
Django email backend which invokes system `sendmail` binary.
## Usage
Install via pip:
```
pip install cr-sendmail-django
```
In your Django settings, set the email backend:
```python
EMAIL_BACKEND = "cr_sendmail.backends.SendmailBackend"
```
You can also specify a path to the `sendmail` binary:
```python
SENDMAIL_BINARY = "/path/to/sendmail"
```
NOTE: this package does not send mail on its own. It requires a fully configured Mail Transport Agent (MTA) on your server. Only use this package if you have configured an MTA such as `exim`, `postfix`, etc. on your server. CodeRed Cloud hosting *does* provide a fully functional MTA with paid plans; however other providers such as AWS, Azure, Digital Ocean, Heroku, etc. do not by default.
## Logging
This package uses Python logging to logger named `cr-sendmail-django`. To see log output, configure [Django logging](https://docs.djangoproject.com/en/stable/howto/logging/).
## Compatibility with `django_sendmail_backend`
This package also provides a drop-in replacement for `django_sendmail_backend` package, for existing sites without modification.
```python
EMAIL_BACKEND = "django_sendmail_backend.backends.EmailBackend"
```
## Credits
This package is a replacement for `django_sendmail_backend`, supported by CodeRed.
Thanks to:
* https://github.com/perenecabuto/django-sendmail-backend
* https://djangosnippets.org/snippets/1864/