smtplib problem

Fredrik Lundh fredrik at pythonware.com
Sun Feb 11 14:40:13 EST 2001


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





More information about the Python-list mailing list