Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 567 Bytes

README.rst

File metadata and controls

29 lines (18 loc) · 567 Bytes

django_log_email

Django EMail backend that logs messages to a file before sending.

Usage

Add the following to your requirements.txt

git+https://github.com/PaulSD/django_log_email

Then add the following to your settings.py

EMAIL_BACKEND = 'django_log_email.backends.EmailBackend'
EMAIL_LOG_FILE = '/var/log/email.log'
EMAIL_LOG_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_LOG_BACKEND is optional. If omitted, messages are logged but not actually sent.

License

BSD