[python-win32] Reading email body from Outlook: Operation aborted

2022-05-15 Thread mail
Dear all, (Transparency note: This has been posted to https://python-forum.io/thread-37103.html before) The following code will print the ReceivedTime as well as the email body on a Win11 machine (pywin32 version 304, personal computer): import win32com.client outlook = win32com.client

Re: [python-win32] Reading email body from Outlook: Operation aborted

2022-05-15 Thread Steven Manross
The one thing that I see in this code is: * there is a possible problem with how you are calling the Outlook.Application object, namely you are doing a "GetActiveObject" and this could fail if Outlook is not already open. If you are sure that Outlook will always be open when you run your pyth