Jürgen Kareta
2005-05-31 12:01:53 UTC
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:
***@pantergoup.com
How can I get the SMPT addresses ?
regards,
Jürgen
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:
***@pantergoup.com
How can I get the SMPT addresses ?
regards,
Jürgen