Hi all,

1. I am working on a project , which i want to access the Microsoft outlook
inbox, and get the mails and save it locally as it is.

2. This works to read the mails from Micrsoft outlook but its fails to get
the mails from the outlook Express,.
I run this code in windows machine , in that machine i hadn't install any
microsoft product including Ms outlook.
I am trying to get the mails from Outlook Express.

import win32com.client
session = win32com.client.Dispatch("MAPI.Session")
session.Logon()
inbox = session.Inbox
collmsg = inbox.Messages
print  collmsg
msg = collmsg.GetFirst()
while msg:
    print "subject: ", msg.subject
    msg = collmsg.GetNext()
session.Logoff()

could anybody tell me what changes should i want to done , to run
successfully?

pls if there any links , which could more usefull to me pls forward to me.


Thanks

Antony
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to