[Django] #32583: Allow mass emails with EmailMessage Object

6 views
Skip to first unread message

Django

unread,
Mar 22, 2021, 3:33:53 AM3/22/21
to django-...@googlegroups.com
#32583: Allow mass emails with EmailMessage Object
-----------------------------------------+--------------------------
Reporter: Muskan Vaswan | Owner: nobody
Type: New feature | Status: assigned
Component: Core (Mail) | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+--------------------------
Allowing sending in a list of email messages as arguments for
`send_mass_mail()` function. This will allow the user to send multiple
emails using the email message object, in a single connection usinf a
simplistic syntax.

----

Example Usage:

{{{
messages = [
EmailMessage(subject, message, sender, recipient, bcc, cc,
reply_to=email)
for subject, message, sender, recipient, bcc, cc, email in datatuple
]
send_mass_mail(messages=messages)
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32583>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 22, 2021, 3:34:44 AM3/22/21
to django-...@googlegroups.com
#32583: Allow mass emails with EmailMessage Object
-------------------------------+--------------------------------------
Reporter: Muskan Vaswan | Owner: (none)
Type: New feature | Status: new

Component: Core (Mail) | Version: 3.1
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Muskan Vaswan):

* owner: nobody => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/32583#comment:1>

Django

unread,
Mar 22, 2021, 3:42:27 AM3/22/21
to django-...@googlegroups.com
#32583: Allow mass emails with EmailMessage Object
-------------------------------+--------------------------------------
Reporter: Muskan Vaswan | Owner: (none)
Type: New feature | Status: closed

Component: Core (Mail) | Version: 3.1
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => wontfix


Comment:

The API for `send_mass_mail()` is
[https://github.com/django/django/blob/090ca6512f514556394d4a8d321db7883f03e2a6/django/core/mail/__init__.py#L74-L75
frozen] so we will not accept any new functionalities. Check also
[https://docs.djangoproject.com/en/3.0/topics/email/#sending-multiple-
emails docs] about sending multiple emails.

--
Ticket URL: <https://code.djangoproject.com/ticket/32583#comment:2>

Reply all
Reply to author
Forward
0 new messages