Message120544
New patch that takes a middle ground on the API: sendmail accepts string and bytes, and a new method send_message accepts a Message object with a more convenient signature. I think send_message does belong in smtplib since it would be awkward and unintuitive to put the helper function in email, since one needs to create an SMTP server to call sendmail.
I am satisfied with this version; the delta against the existing code and docs is smaller and the API feels clean.
The new patch also updates a couple of the email package examples that use sendmail to use send_message (one of the sendmail examples is left untouched).
If there are no objections I'll commit this this weekend sometime. |
|
Date |
User |
Action |
Args |
2010-11-05 22:05:50 | r.david.murray | set | recipients:
+ r.david.murray, barry, exarkun, pitrou, giampaolo.rodola, ccgus, Allison.Vollmann |
2010-11-05 22:05:50 | r.david.murray | set | messageid: <1288994750.64.0.927161504573.issue10321@psf.upfronthosting.co.za> |
2010-11-05 22:05:48 | r.david.murray | link | issue10321 messages |
2010-11-05 22:05:48 | r.david.murray | create | |
|