Mailjet: fix TypeError in sanitize_address

Fix TypeError when sending to or from addresses with
display names containing commas. Rewrite Anymail's
workaround for Mailjet's problem with commas in display
names, to avoid calling Django's internal sanitize_address
in an unsupported way.

The TypeError results from Django changes that will be
introduced in Django 2.2.15, 3.0.9, and 3.1.
This commit is contained in:
medmunds
2020-07-23 13:06:25 -07:00
committed by Mike Edmunds
parent 448d5ec8e5
commit c4ed6660b3
3 changed files with 21 additions and 5 deletions

View File

@@ -39,6 +39,10 @@ Fixes
* **Amazon SES:** Fix bcc, which wasn't working at all on non-template sends.
(Thanks to `@mwheels`_ for reporting the issue.)
* **Mailjet:** Fix TypeError when sending to or from addresses with display names
containing commas (introduced in Django 2.2.15, 3.0.9, and 3.1).
Features
~~~~~~~~