[python-win32] help with parsing email
Tim Roberts
timr at probo.com
Mon Aug 18 22:29:48 CEST 2008
Ahmed, Shakir wrote:
> Thanks everyone who tried to help me to parse incoming email from an exchange server:
>
> Now, I am getting following error; I am not sure where I am doing wrong. I appreciate any help how to resolve this error and extract emails from an exchange server.
>
>
> First I tried:
>
>>>> mailserver = 'EXCHVS01.my.org'
>>>> mailuser = 'myname'
>>>> mailpasswd = 'mypass'
>>>> mailserver = poplib.POP3(mailserver)
>>>>
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> File "C:\Python24\lib\poplib.py", line 96, in __init__
> raise socket.error, msg
> error: (10061, 'Connection refused')
>
Are you absolutely sure that your Exchange server includes the POP
gateway? Remember that Outlook communicates with Exchange through a
custom set of protocols. The POP gateway is optional, and many
corporate environments turn it off.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list