the html reply printed by this script would normally be rendered into new web page if caught by browser such cryptic output might be less than idealbut you could easily search the reply string for its components to determine the result ( using the string find method or an in membership test to look for "successful")parse out its components with python' standard html parse or re modules (covered in )and so on the resulting mail message--viewedfor varietywith ' pymailgui program--shows up in this book' email account as seen in figure - (it' single text-part messagefigure - sendurl py result of coursethere are otherless remote ways to send email from client machine for instancethe python smtplib module (used by mailtoolsitself depends only upon the client and smtp server connections being operationalwhereas this script also depends on the web server machine and cgi script (requests go from client to web server to cgi script to smtp serverbecause our cgi script supports general urlsthoughit can do more than mailtohtml tag and can be invoked with urllib request outside the context of running web browser for instanceas discussed in scripts like sendurl py can be used to invoke and test server-side programs reading pop email so farwe've stepped through the path the system follows to send new mail let' now see what happens when we try to view incoming pop mail reading pop email