Re: [python-win32] getting email adresses from outlook

2005-06-01 Thread Jürgen Kareta
Hello, I've solved my problem. After adding CDO to my Outlook installation it works now: from win32com.client.dynamic import Dispatch s=Dispatch("Mapi.session") s.Logon('Microsoft Outlook') entries=s.AddressLists('Globales Adressbuch').AddressEntries for entr in entries: print entr.Name,ent

Re: [python-win32] getting email adresses from outlook

2005-06-01 Thread Mark Hammond
> results in > File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line > 79, in _GetGoodDispatch > IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, > pythoncom.IID_IDispatch) > com_error: (-2147221005, 'Ung\xfcltige Klassenzeichenfolge', > None, None) > > So it seem

Re: [python-win32] getting email adresses from outlook

2005-06-01 Thread Jürgen Kareta
Hi Simon, thanks for the useful link. I think that should help me out, specialy as I found a mapi viewer on the net wich shows the nessesary ids. I need the CDO com object. But I get errors, when I trie to open the com object. from win32com.client.dynamic import Dispatch s=Dispatch("Mapi.sessio

Re: [python-win32] getting email adresses from outlook

2005-05-31 Thread Jürgen Kareta
Steve Holden schrieb: > Jürgen Kareta wrote: > >> Hello, >> >> I'm trying to get some email addresses with the following pythoncode: >> >> import win32com.client >> O = win32com.client.gencache.EnsureDispatch('Outlook.Application') >> mapi=O.GetNamespace('MAPI') >> adr_li=mapi.AddressLists.Item('G

Re: [python-win32] getting email adresses from outlook

2005-05-31 Thread Simon Brunning
On 5/31/05, Jürgen Kareta <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to get some email addresses with the following pythoncode: > > import win32com.client > O = win32com.client.gencache.EnsureDispatch('Outlook.Application') > mapi=O.GetNamespace('MAPI') > adr_li=mapi.AddressLists.Item('Gl

Re: [python-win32] getting email adresses from outlook

2005-05-31 Thread Steve Holden
Jürgen Kareta wrote: > Hello, > > I'm trying to get some email addresses with the following pythoncode: > > import win32com.client > O = win32com.client.gencache.EnsureDispatch('Outlook.Application') > mapi=O.GetNamespace('MAPI') > adr_li=mapi.AddressLists.Item('Global Addressbook') > members=adr

[python-win32] getting email adresses from outlook

2005-05-31 Thread Jürgen Kareta
Hello, I'm trying to get some email addresses with the following pythoncode: import win32com.client O = win32com.client.gencache.EnsureDispatch('Outlook.Application') mapi=O.GetNamespace('MAPI') adr_li=mapi.AddressLists.Item('Global Addressbook') members=adr_li.AddressEntries.Item('MyGroup').Memb