View Single Post
  #4  
Old March 3rd 10, 11:38 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Use Redemption to get sender's email address

Although that was the lazy coder way. If the code will run in a loop or
where you need to release things as needed you're better off breaking this
line with all the dot operators into component parts with explicit objects
you can deterministically release as needed:

_mail.Recipients[1].AddressEntry.SMTPAddress

You'd instantiate explicit RDORecipients, RDORecipient and RDOAddressEntry
objects.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BVM" wrote in message
...
Thanks, it works better.

Ads