[docs] [issue11883] Call connect() before sending an email with smtplib

Sandro Tosi report at bugs.python.org
Tue Apr 19 22:59:23 CEST 2011

New submission from Sandro Tosi <sandro.tosi at 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 at python
components: Documentation
files: smtp_connect-2.7.patch
keywords: patch
messages: 134100
nosy: docs at 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 <report at bugs.python.org>

More information about the docs mailing list