summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-11-30 15:07:26 (GMT)
committerFred Drake <fdrake@acm.org>1998-11-30 15:07:26 (GMT)
commitf6c59e8fff021874156a061ebba0baf13e8f17da (patch)
treeb5f0fb94fb70a6721f55a27ac5f4410cad07f3e5 /Doc
parent67a40e814ca29a8b886d0db018995f9b518785e8 (diff)
downloadcpython-f6c59e8fff021874156a061ebba0baf13e8f17da.zip
cpython-f6c59e8fff021874156a061ebba0baf13e8f17da.tar.gz
cpython-f6c59e8fff021874156a061ebba0baf13e8f17da.tar.bz2
Do all the right imports. Problem reported by Martijn Faassen
<faassen@vet.uu.nl>.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsmtplib.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libsmtplib.tex b/Doc/lib/libsmtplib.tex
index d7929eb..de295a1 100644
--- a/Doc/lib/libsmtplib.tex
+++ b/Doc/lib/libsmtplib.tex
@@ -138,6 +138,7 @@ consult the module code.
\begin{verbatim}
import rfc822, string, sys
+import smtplib
def prompt(prompt):
sys.stdout.write(prompt + ": ")
@@ -154,7 +155,7 @@ while 1:
msg = msg + line
print "Message length is " + `len(msg)`
-server = SMTP('localhost')
+server = smtplib.SMTP('localhost')
server.set_debuglevel(1)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()