#3307: Add some extra functionality to django.core.mail.send_mass_mail
----------------------------+-----------------------------------------------
Reporter:  ubernostrum     |       Owner:  adrian
Type: enhancement | Status: new Priority: normal | Milestone: Component: Core framework | Version: Severity: normal | Keywords: ----------------------------+-----------------------------------------------
Django's built-in `send_mass_mail` is nice, but it's lacking two features
which would make it even nicer (especially for folks who manage
newsletters or other types of mailing lists):

 1. It can't handle multipart messages, which rules out sending HTML and
plain-text versions of the same message.
 2. It doesn't do anything to hide the email addresses of the recipients,
which is a no-no for newsletters.

So here's a proposal:

 1. Have `send_mass_mail` look at the `message` part of each datatuple; if
the message is a list or tuple, send multipart with the first element
being the plain-text and the second being the HTML.
 2. Add a new optional keyword argument -- `suppress_recipients` -- which
defaults to `False` (for backwards compatibility) but, if `True`, uses
only the 'first' address in `recipient_list` in the `To:` field (so the
first supplied address can be a mailing-list address or other screen) and
the rest will go into the `Bcc:` field.

--
Ticket URL: <http://code.djangoproject.com/ticket/3307>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to