The issue is that python tries to iterates starting with Index, but outlook expects for first item Index. I have created my own iterator to iterate over Outlook objects via python. Also tried both with Outlook open and closed and neither changed anything. To be prompted but that didn't work either (same error). Not sure what my profile name is so I tried with: session.Logon() However I get an error: _error: (-2147221005, 'Invalid class string', None, None) # Inbox can mutate while you're iterating. # is the recommended approach from Microsoft since the # via getitem-style calls (inbox_messages etc.) this # Although the inbox_messages collection can be accessed # possible to pull the default profile from the registry. # your own profile name if not "Outlook". # Leave blank to be prompted for a session, or use I've tried Tim Golden's code: import win32com.client I've tried several snippets but seem to be getting the same errors. A lot of stuff is either very old/has no docs/not explained. However I'm having a problem finding much information about python and exchange/Outlook integration. I'm trying to write a short program that will read in the contents of e-mails within a folder on my exchange/Outlook profile so I can manipulate the data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |