Skip to Main Content
Programming Python, 3rd Edition
book

Programming Python, 3rd Edition

by Mark Lutz
August 2006
Intermediate to advanced content levelIntermediate to advanced
1600 pages
51h 46m
English
O'Reilly Media, Inc.
Content preview from Programming Python, 3rd Edition

The Root Page

Let’s start off by implementing a main page for this example. The file shown in Example 17-2 is primarily used to publish links to the Send and View functions’ pages. It is coded as a static HTML file, because there is nothing to generate on the fly here.

Example 17-2. PP3E\Internet\Web\PyMailCgi\pymailcgi.html

<HTML> <TITLE>PyMailCGI Main Page</TITLE> <BODY> <H1 align=center>PyMailCGI</H1> <H2 align=center>A POP/SMTP Web Email Interface</H2> <P align=center><I>Version 2.0, January 2006</I></P> <table> <tr><td><hr> <h2>Actions</h2> <P> <UL> <LI><a href="cgi-bin/onRootViewLink.py">View, Reply, Forward, Delete POP mail</a> <LI><a href="cgi-bin/onRootSendLink.py">Send a new email message by SMTP</a> </UL></P> <tr><td><hr> <h2>Overview</h2> <P> <A href="http://rmi.net/~lutz/about-pp.html"> <IMG src="ppsmall.gif" align=left alt="[Book Cover]" border=1 hspace=10></A> This site implements a simple web-browser interface to POP/SMTP email accounts. Anyone can send email with this interface, but for security reasons, you cannot view email unless you install the scripts with your own email account information, in your own server account directory. PyMailCgi is implemented as a number of Python-coded CGI scripts that run on a server machine (not your local computer), and generate HTML to interact with the client/browser. See the book <I>Programming Python, 3rd Edition</I> for more details.</P> <tr><td><hr> <h2>Notes</h2> <P>Caveats: PyMailCgi 1.0 was initially written during a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Python, 3rd Edition

Learning Python, 3rd Edition

Mark Lutz

Publisher Resources

ISBN: 0596009259Supplemental ContentErrata Page