Browse Source

Návrat console -> smtp

middleware_test
Jonas Havelka 4 years ago
parent
commit
06c9dea6b5
  1. 2
      various/mail_prefixer.py

2
various/mail_prefixer.py

@ -4,7 +4,7 @@ Used to distinguish testing emails from production ones."""
# We try to monkeypatch django.core.mail.backends.smtp :-)
from django.core.mail.backends.console import EmailBackend as DjangoSMTPBackend
from django.core.mail.backends.smtp import EmailBackend as DjangoSMTPBackend
from django.conf import settings
class PrefixingMailBackend(DjangoSMTPBackend):

Loading…
Cancel
Save