win32com: need help with opening mapi session error

Mark Hahn mark at hahnca.com
Mon Sep 8 19:52:16 CEST 2003


After great help from this group, I figured out what I needed to do to get
an email client to create a message and open it up on the screen with
win32com.  Now I'm having trouble getting the first line of code to work
(why don't I just have you all do my project for me :)

This ...

import win32com.client
session = win32com.client.Dispatch('MAPI.Session')

... is giving me the error ...

None: (-2147221005, 'Invalid class string', None, None)

I've also tried "Mapi.Session" and "MAPI.Session.1".

Can someone give me a hint what is going on here?






More information about the Python-list mailing list