Message299293
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. |
|
Date |
User |
Action |
Args |
2017-07-27 04:34:53 | r.david.murray | set | recipients:
+ r.david.murray, zoof |
2017-07-27 04:34:53 | r.david.murray | set | messageid: <1501130093.46.0.935287955631.issue31052@psf.upfronthosting.co.za> |
2017-07-27 04:34:53 | r.david.murray | link | issue31052 messages |
2017-07-27 04:34:53 | r.david.murray | create | |
|