[python-win32] getting email adresses from outlook
Jürgen Kareta
python at kareta.de
Tue May 31 14:01:53 CEST 2005
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:
paul.panther at pantergoup.com
How can I get the SMPT addresses ?
regards,
Jürgen
More information about the Python-win32
mailing list