mirror of
https://github.com/bugsink/bugsink.git
synced 2026-04-25 00:18:18 -05:00
11 lines
413 B
Python
11 lines
413 B
Python
from django.core.mail.backends.console import EmailBackend as ConsoleEmailBackend
|
|
|
|
|
|
class QuietConsoleEmailBackend(ConsoleEmailBackend):
|
|
|
|
def write_message(self, message):
|
|
msg = message.message()
|
|
# self.stream.write("From: %s\n" % msg["From"])
|
|
# self.stream.write("To: %s\n" % msg["To"])
|
|
self.stream.write("Mail not sent (not SMTP configured); Subject: %s\n" % msg["Subject"])
|