#7655 closed (fixed)
mail.py: Assert that "to" and "bcc" are not strings
Reported by: | Thomas Güttler | Owned by: | nobody |
---|---|---|---|
Component: | Core (Mail) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (6)
by , 16 years ago
Attachment: | 7655.patch added |
---|
comment:1 by , 16 years ago
Component: | Uncategorized → django.core.mail |
---|---|
Summary: | Assert that to and bcc are not strings → mail.py Assert that "to" and "bcc" are not strings |
comment:2 by , 16 years ago
Summary: | mail.py Assert that "to" and "bcc" are not strings → mail.py: Assert that "to" and "bcc" are not strings |
---|
comment:3 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 16 years ago
Cc: | removed |
---|
Note:
See TracTickets
for help on using tickets.
(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