question about smtplib

Fredrik Lundh fredrik at
Tue Oct 4 07:52:11 CEST 2005

nephish at wrote:

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

     "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."


More information about the Python-list mailing list