CPAN Equivalent for Python
Peter Wu
me at privacy.net
Wed Dec 25 00:44:07 EST 2002
Alexandre Fayolle <alf at fayauffre.org> utters:
: SMTP is in module smtplib in the standard library.
I tried the following but it gives me some error messages.
ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import smtplib
>>> s=smtplib.SMTP("localhost")
>>> print s.help()
(500, 'unsupport command')
>>> s.putcmd("vrfy", "someone at here")
>>> s.getreply()
(500, 'unsupport command')
>>>
: NNTP is in module nntplib in the standard library.
NNTP seems to work properly.
What was I missing? Thanks.
--
Cheers, Peter
More information about the Python-list
mailing list