diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-09-22 15:17:13 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-09-22 15:17:13 +0200 |
| commit | 8599f64e54adfb32ee6550ed7a6ec9944034d978 (patch) | |
| tree | 75a94bb8187baf66b61d33e455f72067749f5665 /django | |
| parent | 0ab8c58ca896643ea0bb0830a96274160d14cc69 (diff) | |
Fixed #18861 -- Triggered message validation with locmem email backend
Thanks Bruno ReniƩ for the report and the initial patch.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/mail/backends/locmem.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/core/mail/backends/locmem.py b/django/core/mail/backends/locmem.py index 642bfc49fb..6826d09ee5 100644 --- a/django/core/mail/backends/locmem.py +++ b/django/core/mail/backends/locmem.py @@ -20,5 +20,7 @@ class EmailBackend(BaseEmailBackend): def send_messages(self, messages): """Redirect messages to the dummy outbox""" + for message in messages: # .message() triggers header validation + message.message() mail.outbox.extend(messages) return len(messages) |
