[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread R. David Murray
R. David Murray added the comment: If you use smtplib.send_message in python3, it will do what you want (including stripping BCC headers before sending the message). If someone wants to create a PR to add an example of what Eric is talking about (specifying additional senders in smtplib.sendma

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Jack
Jack added the comment: "I'm on the fence about including this in the examples." Think of it this way.. Including it in the docs would have prevented this question. It can be just a side note it doesn't have to be a whole example. Thx. -- status: open -> closed __

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Eric V. Smith
Eric V. Smith added the comment: You need to review how SMTP works. The contents of the mail message have no bearing on where messages are sent. That's exactly how BCC works: there's nothing in the message telling you who is BCC'd, but the mail is still sent to the BCC recipients, via SMTP. S

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Jack
Jack added the comment: Please see the stack overflow question: http://stackoverflow.com/questions/42696100/python-smtp-send-email-with-cc -- ___ Python tracker ___ _

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Jack
Jack added the comment: I think you missundersttod. I showed the example page just so you would understand what I am talking about. Let me explain it better: msg['Subject'] = 'The contents of %s' % textfile msg['From'] = me msg['To'] = you Works. msg['Subject'] = 'The contents of %s' % textfil

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Eric V. Smith
Eric V. Smith added the comment: So, you want to improve the examples? I wouldn't be opposed to that. I don't see that there's any code to change. -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Jack
Changes by Jack : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Jack
Jack added the comment: But this is what I mean.. It shouldn't be arbitrary. When you define CC you want him as CC not as another one in the TO. This is why I said this is enhancement request. -- ___ Python tracker

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Eric V. Smith
Eric V. Smith added the comment: The examples don't cover it, but look at the documentation for setting arbitrary mail headers such as CC. And look at smtplib.SMTP.sendmail() on sending a message to arbitrary recipients (to, cc, or bcc are all the same): https://docs.python.org/2/library/smtpl

[issue29771] An email and MIME handling package - Add support to send CC of email

2017-03-09 Thread Jack
New submission from Jack: Currently using the package we can only define emails in the 'TO' as shown here: https://docs.python.org/2/library/email-examples.html#email-examples There is no support for email to be sent as CC or BCC which is useful quality in many emails. Please see if this can be