mhammond / pywin32

Python for Windows (pywin32) Extensions
5.01k stars 793 forks source link

New Outlook version isn't working #2063

Closed PahlawanJoey closed 6 months ago

PahlawanJoey commented 1 year ago
olApp = win32.Dispatch("Outlook.Application")
olNS = olApp.GetNameSpace("MAPI")

This code is giving me pywintypes.com_error: ('Operation unavailable'

I noticed it only happens when I switch in outlook to the new version, when I switch back to the "old" version of outlook it works again.

image

kowabounga173 commented 8 months ago

Answer is there : https://stackoverflow.com/questions/77387302/send-email-with-python-in-windows-11-with-outlook-new

Avasam commented 8 months ago

@PahlawanJoey So, probably not a pywin32 issue because there's no Component Object Model (COM) to use? @mhammond Should this be closed as "can't fix" ?