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.
* 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>