Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7655 closed (fixed)

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

Reported by: guettli Owned by: nobody
Component: Core (Mail) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 guettli 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by guettli

comment:1 Changed 7 years ago by guettli

  • Component changed from Uncategorized to django.core.mail
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Assert that to and bcc are not strings to mail.py Assert that "to" and "bcc" are not strings

comment:2 Changed 7 years ago by guettli

  • Summary changed from mail.py Assert that "to" and "bcc" are not strings to mail.py: Assert that "to" and "bcc" are not strings

comment:3 Changed 7 years ago by programmerq

  • Triage Stage changed from Unreviewed to Accepted

comment:4 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to 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 Changed 7 years ago by guettli

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