question about smtplib

Fredrik Lundh fredrik at pythonware.com
Tue Oct 4 01:52:11 EDT 2005


nephish at xit.net wrote:

> cool. so this line
> server = smtplib.SMTP(localhost)
> is when i connect ?

    http://www.python.org/doc/lib/module-smtplib.html

     "If the optional host and port parameters are given, the
    SMTP connect() method is called with those parameters
    during initialization."

    "For normal use, you should only require the initialization/
    connect, sendmail(), and quit() methods. An example is
    included below."

</F>






More information about the Python-list mailing list