Search the web
Sign In
New User? Sign Up
python-ce · Python Windows CE
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Outlook-MAPI   Message List  
Reply | Forward Message #825 of 1811 |
Hi there,

Can any one please help in getting me Python-Outlook
programming issue clarified.



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 some body to it.(I
DON't want to send it automatically)



That's all. But, I am getting an error when I try to initiate 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\WinCvs 2.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






Mon May 9, 2005 3:43 am

vcsekhar007
Offline Offline
Send Email Send Email

Forward
Message #825 of 1811 |
Expand Messages Author Sort by Date

Hi there, Can any one please help in getting me Python-Outlook programming issue clarified. I just wanted to do the following using Python: 1)Open a New Oulook...
V.C.Sekhar
vcsekhar007
Offline Send Email
May 9, 2005
3:43 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help