This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients r.david.murray, zoof
Date 2017-07-27.04:34:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501130093.46.0.935287955631.issue31052@psf.upfronthosting.co.za>
In-reply-to
Content
smtplib in 2.7 doesn't know anything about RFC822 or any of the replacement RFCs.  sendmail accepts a *string*, and doesn't understand or modify anything about that string except the newlines.  It is your responsibility not to *add* the BCC header.  What you want to do is put the BCC (and CC!) recipients in your toaddr list passed to sendmail, and *not* add a BCC header.

In Python3 smtplib has a send_message method that accepts a Message object, and that method uses the BCC to inform where to send the message and strips the header before sending. That is, smtplib's send_message method *does* implement RFC5322 behaviors.
History
Date User Action Args
2017-07-27 04:34:53r.david.murraysetrecipients: + r.david.murray, zoof
2017-07-27 04:34:53r.david.murraysetmessageid: <1501130093.46.0.935287955631.issue31052@psf.upfronthosting.co.za>
2017-07-27 04:34:53r.david.murraylinkissue31052 messages
2017-07-27 04:34:53r.david.murraycreate