Skip to content Skip to sidebar Skip to footer

Python Win32com Outlook, Can't Retrieve Sender Information.

I'm using win32com.client to interact with outlook. I've managed to retrieve the body and subject of the messages. I based my code on the following post: Clearly documented reading

Solution 1:

Sender is indeed a COM object, not a string. It has properties like Name and Address. Keep in mind that not all items in your Inbox are MailItem objects - you can also have MeetingItem and ReportItem objects. If you only want MailItem objects, check that Class property = 43 (OlObjectClass.olMail)


Post a Comment for "Python Win32com Outlook, Can't Retrieve Sender Information."