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

2011-04-30 Thread R. David Murray
R. David Murray added the comment: The call to connect() is not required in the first example, since the hostname is passed to the constructor in that case. Since these examples are about the email package rather than smtplib, I preferred to change the other examples to pass localhost to the

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

2011-04-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9cb47d0241e by R David Murray in branch '2.7': #11883: fix email examples by adding 'localhost' to SMTP constructor calls http://hg.python.org/cpython/rev/a9cb47d0241e New changeset 00ff8825f551 by R David Murray in branch '3.1': #11883: fix email

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

2011-04-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c61c1d583fd by R David Murray in branch '3.2': #11883: replace incorrect call to sendmail with correct call to send_message http://hg.python.org/cpython/rev/5c61c1d583fd New changeset fcfaeab42f6e by R David Murray in branch 'default': Merge #1188

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

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: I’d remove the “Connect to the SMTP server” comment before “s.connect()”. It’s redundant, contrary to the other comment (which no doubt prompted you to add a comment too) “Send the message via local SMTP server” which helpfully introduces the next lines of code

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

2011-04-19 Thread Sandro Tosi
Changes by Sandro Tosi : Added file: http://bugs.python.org/file21732/smtp_connect-3.2.patch ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-04-19 Thread Sandro Tosi
New submission from Sandro Tosi : 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 in