[Django] #31955: Multiple email send issues

13 views
Skip to first unread message

Django

unread,
Aug 27, 2020, 9:16:05 AM8/27/20
to django-...@googlegroups.com
#31955: Multiple email send issues
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
ajeetgupt1982 |
Type: | Status: new
Uncategorized |
Component: Core | Version: 3.1
(Mail) | Keywords: Email send issues
Severity: Normal | invalid address
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hi,

to = str('t...@gmail.com')
cc = str(context['workernotification'])
# == ''Pick from the dynamically custom notification profile
first...@gmail.com,secon...@gmail.com''
from_email = request.POST.get('fromemail')
msg = EmailMultiAlternatives(subject, text_content,from_email,[to],[cc])
msg.attach_alternative(html_content, "text/html")
msg.send() # Mail send code

Errors:

Exception Value: | Invalid address; only first...@gmail.com could be
parsed from "first...@gmail.com,secon...@gmail.com"

I am getting the above error while using in to or cc .

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

Django

unread,
Aug 27, 2020, 10:55:40 AM8/27/20
to django-...@googlegroups.com
#31955: Multiple email send issues
-------------------------------------+-------------------------------------
Reporter: ajeet | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (Mail) | Version: 3.1
Severity: Normal | Resolution: invalid
Keywords: Email send issues | Triage Stage:
invalid address | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => closed
* has_patch: 1 => 0
* resolution: => invalid
* easy: 1 => 0


Comment:

`to` should contain a list of addresses, not a string with multiple
addresses. Please don't use Trac as a support channel. Closing per
TicketClosingReasons/UseSupportChannels.

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

Reply all
Reply to author
Forward
0 new messages