cdo.message

Reading e-mails from Outlook with Python through MAPI

你离开我真会死。 提交于 2019-11-26 15:48:18
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. However I'm having a problem finding much information about python and exchange/Outlook integration. A lot of stuff is either very old/has no docs/not explained. I've tried several snippets but seem to be getting the same errors. I've tried Tim Golden's code: import win32com.client session = win32com.client.gencache.EnsureDispatch ("MAPI.Session") # # Leave blank to be prompted for a session, or use # your own profile name if not "Outlook".

Reading e-mails from Outlook with Python through MAPI

社会主义新天地 提交于 2019-11-26 04:38:05
问题 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. However I\'m having a problem finding much information about python and exchange/Outlook integration. A lot of stuff is either very old/has no docs/not explained. I\'ve tried several snippets but seem to be getting the same errors. I\'ve tried Tim Golden\'s code: import win32com.client session = win32com.client.gencache.EnsureDispatch (\