how to read names of recipients in the to box

T

Tulasi

Hello,

How to get the values in or maild ids of recipients in the to box of custom
form?
The following code gives some junk

For Each recip in Item.Recipients
strAddr = strAddr & ";" & recip.Address
Next
strAddr = Mid(strAddr, 2)

is there any property to get the value of smtp value of the recipient object?

Thanks in advance
 
S

Sue Mosher [MVP-Outlook]

To get the SMTP address from an Exchange sender or recipient in versions before Outlook 2007, use CDO 1.21 or, to avoid security prompts, Redemption and the PR_EMAIL (&H39FE001E) MAPI property to obtain the SMTP address from the AddressEntry object. See http://www.outlookcode.com/d/code/getsenderaddy.htm#redemption and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples.

See http://groups.google.com/group/micr...e_frm/thread/4d4d5fece24a2a7/ad2fcbb691d5bf18 for a discussion of how to do it with Cached Exchange Mode in Outlook 2003.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top