| 29 | | My current workaround is to override the `EmailMessage::message` method to skip adding the {{{To}}}, {{{Cc}}}, {{{From}}}, {{{Reply-To}}} headers the second time, since we're already attaching them the first time above. In other words: |
| 30 | | |
| 31 | | {{{#!diff |
| 32 | | @@ -21,7 +21,7 @@ |
| 33 | | # Use cached DNS_NAME for performance |
| 34 | | msg['Message-ID'] = make_msgid(domain=DNS_NAME) |
| 35 | | for name, value in self.extra_headers.items(): |
| 36 | | - if name.lower() != 'from': # From is already handled |
| 37 | | + if name.lower() not in ('from', 'to', 'cc', 'reply-to'): # These are already handled |
| 38 | | msg[name] = value |
| 39 | | return msg |
| 40 | | }}} |
| | 29 | I've provided a patch for this here: [https://github.com/django/django/pull/17606 django/django#17606] |