Opened 4 years ago

Closed 4 years ago

#31955 closed Uncategorized (invalid)

Multiple email send issues

Reported by: ajeet Owned by: nobody
Component: Core (Mail) Version: 3.1
Severity: Normal Keywords: Email send issues invalid address
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

to = str('to@…')
cc = str(contextworkernotification)
# == Pick from the dynamically custom notification profile firstemail@…,secondemail@…
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 firstemail@… could be parsed from "firstemail@…,secondemail@…"

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

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Easy pickings: unset
Has patch: unset
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top