Django

Code

Ticket #7655 (closed: fixed)

Opened 5 months ago

Last modified 3 months ago

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

Reported by: guettli Assigned to: nobody
Milestone: Component: django.core.mail
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

7655.patch (0.6 kB) - added by guettli on 07/07/08 06:45:57.

Change History

07/07/08 06:45:57 changed by guettli

  • attachment 7655.patch added.

07/07/08 08:07:13 changed by guettli

  • needs_better_patch changed.
  • summary changed from Assert that to and bcc are not strings to mail.py Assert that "to" and "bcc" are not strings.
  • component changed from Uncategorized to django.core.mail.
  • needs_tests changed.
  • needs_docs changed.

07/07/08 08:07:27 changed 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.

07/07/08 12:56:19 changed by programmerq

  • stage changed from Unreviewed to Accepted.

07/07/08 20:56:01 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(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

09/04/08 10:03:11 changed by guettli

  • cc deleted.

Add/Change #7655 (mail.py: Assert that "to" and "bcc" are not strings)




Change Properties
Action