mail.py: Assert that "to" and "bcc" are not strings
Hi,
if you give a string to EmailMessage "to" or "bcc", the email
gets send to each single character in the string. This assert patch,
helps to find this problem fast.
Change History
(6)
| Component: |
Uncategorized → django.core.mail
|
| Summary: |
Assert that to and bcc are not strings → mail.py Assert that "to" and "bcc" are not strings
|
| Summary: |
mail.py Assert that "to" and "bcc" are not strings → mail.py: Assert that "to" and "bcc" are not strings
|
| Triage Stage: |
Unreviewed → Accepted
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
(In [7864]) Fixed #7655 -- Added two assertions to mail.py to help people debug a common problem (sending strings instead of lists/tuples for 'to' or 'bcc'). Thanks, guettli