Hi,<br>Can anyone help me , what the problem ?<br>I am running this code in windows xp and outlook also installed in my machine.<br><br>>>> from win32com.client import Dispatch<br>>>> s=Dispatch('Mapi.Session
')<br><br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "C:\Python25\Lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch<br> dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
<br> File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName<br> return (_GetGoodDispatch(IDispatch, clsctx), userName)<br> File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 78, in _GetGoodDispatch
<br> IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)<br>pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)<br><br>Antony<br><br>