Python COM Outlook Question

L

liam_herron

Say I want to open a shared email inbox (named "DailyGoodEmails") that
is different from my default Outlook inbox, how do I specify this?

Currently, I would do:

s = Dispatch("Outlook.Application")
space = s.GetNameSpace("MAPI")
inbox = space.GetDefaultFolder(6)
myFolder = inbox.Folders[9] #open the folder i want


I have no idea where the "6" comes from but I want to be able to
specify "DailyGoodEmails" somewhere
and be able to iterate over the emails.
 
K

kyosohma

Say I want to open a shared email inbox (named "DailyGoodEmails") that
is different from my default Outlook inbox, how do I specify this?

Currently, I would do:

s = Dispatch("Outlook.Application")
space = s.GetNameSpace("MAPI")
inbox = space.GetDefaultFolder(6)
myFolder = inbox.Folders[9] #open the folder i want

I have no idea where the "6" comes from but I want to be able to
specify "DailyGoodEmails" somewhere
and be able to iterate over the emails.

I don't know how to do this, but I found you a couple websites that
should point you in the right direction:

http://www.boddie.org.uk/python/COM.html
http://webservices.xml.com/pub/a/ws/2003/05/13/email.html

Hope that helps.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top