smtplib problem

Sheila King sheila at spamcop.net
Mon Feb 12 01:48:20 EST 2001


On Sun, 11 Feb 2001 19:40:13 GMT, "Fredrik Lundh" <fredrik at pythonware.com>
wrote in comp.lang.python in article
<xUBh6.15619$AH6.2202087 at newsc.telia.net>:

:Imran wrote:
:> When using smtplib can you get the "header text" which mail servers
:> introduces themselves with ?
:
:>>> import smtplib
:>>> server = smtplib.SMTP()
:>>> server.connect("localhost")
:(220, 'spam.egg ESMTP pymail 1.2.3/4.5.6; Sun, 11 Feb 2001 12:34:56 +0100')
:>>> server.helo()
:(250, 'spam.egg Hello IDENT:fredrik at spam.egg [1.2.3.4], pleased to meet you')
:
:Cheers /F
:

Nice. And how does one do SMTP authorization? (There must be a way. I see that
the NNTP module includes authorization commands, but the smtplib doesn't!)

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list