Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#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)

7655.patch​ (570 bytes ) - added by Thomas Güttler 18 years ago.

Download all attachments as: .zip

Change History (6)

by Thomas Güttler, 18 years ago

Attachment: 7655.patch​ added

comment:1 by Thomas Güttler, 18 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 Thomas Güttler, 18 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 Jeff Anderson, 18 years ago

Triage Stage: Unreviewed → Accepted

comment:4 by Adrian Holovaty, 18 years ago

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

comment:5 by Thomas Güttler, 18 years ago

Cc: hv@… removed
Note: See TracTickets for help on using tickets.
Back to Top