smtplib problem

Tim Roberts timr at probo.com
Mon Feb 12 01:24:56 EST 2001


Imran <ImranG at btinternet.com> wrote:

>When using smtplib can you get the "header text" which mail servers
>introduces themselves with ?

Use the source, Luke.  You have the full source code for the smtplib.py
module at your disposal; the answer lies within:

C:\WINDOWS>python
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import smtplib
>>> s = smtplib.SMTP()
>>> print s.connect('mail.probo.com')
(220, 'probo.com ESMTP Sendmail 8.9.3/8.9.3; Sun, 11 Feb 2001 22:21:44
-0800')
>>>

--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list