Am 2018-05-31 03:31, schrieb t...@probo.com:
On May 30, 2018, at 11:23 AM, ckk...@hoc.net wrote:


Any ideas? Do you think it will help to do a fresh install of office 2016?

In addition to just installing Outlook, have you configured Outlook?
You can't access MAPI unless you have incoming and outgoing servers
configured and authenticated.

I installed Office 2016 from scratch and still get the same error. But I could make a new observation. When running a standalone script

from win32com.client import Dispatch
o = Dispatch('Outlook.Application')
o.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession)

a window opens saying that there is no standard mail application defined. I checked in the system settings and changed the setting from the windows 10 mail app to outlook but I still get that error. I get it too when I initialize a MAPISession like this:

from win32com.mapi import mapi
mapi.MAPIInitialize((0,mapi.MAPI_MULTITHREAD_NOTIFICATIONS))

I am lost.

Christian

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to