Popmail.py Need help.....................
Relfx
relfx at hotmail.com
Thu Aug 9 00:04:47 EDT 2001
I have tried using these modules but i'm getting some errors when i run the
script.
Here is the code i'm using for the pop mail :
import getpass , poplib
M = poplib.POP3('pop.mail.mia.bellsouth.net')
M.user(getpass.getuser())
M.pass_(getpass.getpass())
numMessages = len(M.list()[1])
for i in range (numMessages):
for j in M.retr (i+1)[1]:
print j
>>>
Traceback (most recent call last):
File "<string>", line 1, in ?
File "C:\Python21\Scripts\popmail.py", line 2, in ?
M = poplib.POP3('pop.mail.mia.bellsouth.net')
File "C:\PYTHON21\lib\poplib.py", line 79, in __init__
self.sock.connect((self.host, self.port))
File "<string>", line 1, in connect
error: host not found
More information about the Python-list
mailing list