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').Members
for num in range(0, members.__len__()-1):
    name=entr.GetNext()
    print name.Name,name.Address

That works fine, except that I get the x400 address:
    paul panther /o=panter group/ou=venus/cn=Recipients/cn=PaulP
instead of the expected SMTP adress:
    [EMAIL PROTECTED]

How can I get the SMPT addresses ?

regards,
Jürgen
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to