summaryrefslogtreecommitdiffstats
path: root/accounts/backend/mail/dummy.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/backend/mail/dummy.py')
-rw-r--r--accounts/backend/mail/dummy.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/accounts/backend/mail/dummy.py b/accounts/backend/mail/dummy.py
index d62a66b..ad38d42 100644
--- a/accounts/backend/mail/dummy.py
+++ b/accounts/backend/mail/dummy.py
@@ -36,13 +36,13 @@ class DummyBackend(Backend):
else:
self.format = format
- def send(self, recipient, subject, body, sender=None):
- if sender is None:
- sender = self.app.config['MAIL_DEFAULT_SENDER']
-
+ def _send(self, recipient, content):
+ body = content.body()
if not self.plain:
body = "\n| ".join(body.split("\n"))
print(self.format.format(
- subject=ensure_utf8(subject), to=ensure_utf8(recipient),
- sender=ensure_utf8(sender), body=ensure_utf8(body)))
+ subject=ensure_utf8(content.subject()),
+ sender=ensure_utf8(content.sender()),
+ to=ensure_utf8(recipient),
+ body=ensure_utf8(body)))