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
> 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
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
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
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
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
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