#3366: Replace datatuple with object in send_mass_mail parameters
---------------------------------------------------+------------------------
Reporter: Gary Wilson <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component:
django.core.mail
Version: SVN | Resolution:
Keywords: | Stage:
Design decision needed
Has_patch: 1 | Needs_docs: 1
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------------------------+------------------------
Changes (by Gary Wilson <[EMAIL PROTECTED]>):
* needs_docs: 0 => 1
* has_patch: 0 => 1
Comment:
Patch added EmailConnection and EmailMessage classes. The `mail_admins`
and `mail_managers` functions are backwards compatible, but I removed
`send_mail` and `send_mass_mail` since it seemed that implementing them
would be sort of redundant.
What used to be `send_mail(...)` can now be accomplished with
`EmailMessage(...).send()`.
What used to be `send_mass_mail(...)` can now be accomplished with
`EmailConnection().send_messages(...)`.
The implementation in the patch should make it pretty easy to add Cc's and
Bcc's (#3307) and attachments (#1541) with `cc`, `bcc`, and `attachments`
parameters to EmailMessage's constructor. An `add_attachment` method
might be nice too.
--
Ticket URL: <http://code.djangoproject.com/ticket/3366#comment:3>
Django Code <http://code.djangoproject.com/>
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
-~----------~----~----~----~------~----~------~--~---