View Single Post
  #4  
Old February 2nd 09, 04:46 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Reading SMTP address from Exchange Sender mail address

If you are already using Redemption, you do not need to jump through all
these hoops, Redemption will do that for you: simply read the
Sender.SmtpAddress property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"VebKol" wrote in message
...
Hi

I'm facing problems getting SMTP address from Exchange sender mail
address.
- Using Redemption :-)

I have used this line to loop recipients
PrSMTPAddress = &H39FE001E
SMTPAddress =
utils.HrGetOneProp(MailItem.Recipients(t).AddressE ntry.MAPIOBJECT,
PrSMTPAddress)

And everything is working fine.

But when I try to do the following :

PrSMTPAddress = &HC1F001E
SMTPAddress = utils.HrGetOneProp(MailItem.MAPIOBJECT, PrSMTPAddress)

for the Exchange sender, I only get address like this :
/O=server/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=name

for external senders the mail address is ok :-)


Do any one have a clue ?

--
Regards
OD



Ads