From f6c59e8fff021874156a061ebba0baf13e8f17da Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 30 Nov 1998 15:07:26 +0000 Subject: [PATCH] Do all the right imports. Problem reported by Martijn Faassen . --- Doc/lib/libsmtplib.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/lib/libsmtplib.tex b/Doc/lib/libsmtplib.tex index d7929eb6f8..de295a15ec 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() -- 2.50.1