Opened 16 years ago

Closed 16 years ago

Last modified 16 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 16 years ago.

Download all attachments as: .zip

Change History (6)

by Thomas Güttler, 16 years ago

Attachment: 7655.patch added

comment:1 by Thomas Güttler, 16 years ago

Component: Uncategorizeddjango.core.mail
Summary: Assert that to and bcc are not stringsmail.py Assert that "to" and "bcc" are not strings

comment:2 by Thomas Güttler, 16 years ago

Summary: mail.py Assert that "to" and "bcc" are not stringsmail.py: Assert that "to" and "bcc" are not strings

comment:3 by Jeff Anderson, 16 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Adrian Holovaty, 16 years ago

Resolution: fixed
Status: newclosed

(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, 16 years ago

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