New submission from Sandro Tosi <sandro.t...@gmail.com>: Hi, following up http://mail.python.org/pipermail/docs/2011-April/003742.html here are a couple of patches to call connect() after smtplib.SMTP() and sendmail(). Patches are:
2.7: to be applied in 2.7 and merged into 3.1 3.2: to be applied in 3.2 and merged into default That's because in 3.2 we have a change in the example to use send_message() instead of sendmail() (in order to allow binary contents), and so there's also a small fix to actually make use of send_message() email-simple. ---------- assignee: docs@python components: Documentation files: smtp_connect-2.7.patch keywords: patch messages: 134100 nosy: docs@python, r.david.murray, sandro.tosi priority: normal severity: normal stage: patch review status: open title: Call connect() before sending an email with smtplib Added file: http://bugs.python.org/file21731/smtp_connect-2.7.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11883> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com