R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------
Added file: http://bugs.python.org/file19507/sendmail_message_2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10321>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to