Outlook-Python Issue
Vijay Chandra Sekhar Parepalli
vcsekhar007 at yahoo.com
Sat May 7 08:47:11 EDT 2005
Hi there,
Can any one please help in getting me Python-Outlook programming issueclarified.
I just wanted to do the following using Python:
1)Open a New Oulook Mail Window
2) Fill the field: to-email address and Write somebody to it.(I DON#8217;t want to send it automatically)
That#8217;s all. But, I am getting an error when I try toinitiate the MAPI-Session using
object = win32com.client.Dispatch("Outlook.Application")
ns =object.GetNamespace("MAPI")
mapi =win32com.client.dynamic.Dispatch("MAPI.session")
Error I see is :
File "C:\Program Files\GNU\WinCvs2.0\Macros\TemplateCvsMacro.py", line 140, in SendMAPIMail
mapi = win32com.client.Dispatch("MAPI.session")
File"C:\Python24\Lib\site-packages\win32com\client\__init__.py", line 95,in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File"C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line 91,in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File"C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line 79,in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,pythoncom.IID_IDispatch)
pywintypes.com_error:(-2147221005, 'Invalid class string', None, None)
Can any one please help me in this regard.
Thanks,
Sekhar
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050507/747ec916/attachment.html>
More information about the Python-list
mailing list