https://github.com/eieste/django-mail-system
A useful library to create E-Mail templates und log E-Mail transmissions
https://github.com/eieste/django-mail-system
Last synced: about 1 year ago
JSON representation
A useful library to create E-Mail templates und log E-Mail transmissions
- Host: GitHub
- URL: https://github.com/eieste/django-mail-system
- Owner: eieste
- License: mit
- Created: 2018-12-12T08:25:14.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2024-02-07T20:30:34.000Z (over 2 years ago)
- Last Synced: 2025-02-01T01:12:04.734Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/eieste/django-mail-system)
[](https://django-mail-system.readthedocs.io/en/staging/?badge=staging)
# django-mail-system
A useful library to create E-Mail templates und log E-Mail transmissions
You can define Templates and Variables for this Templates.
It can be used to send E-Mails.
The whole process is very simple.
Example:
You have a WebService and you would like to send bill mails to all users every first day of a month, you can do it with the following code:
```
from mailsystem.utils.factory import MailFactory
import datetime
if datetime.now().day == 1:
for user in User.objects.filter(active=True):
MailFactory.trigger(reason="billmail", reference=user)
```
## Install
```
pip3 install django-mail-system
```
## Usage
Add app to settings.py
```
INSTALLED_APPS = [
...,
mailsystem,
]
```
## Documentation
[Read the Docs](https://django-mail-system.readthedocs.io/)