> If Count == 0, how can you retrieve *any* recipients?
> Where does the message come from? Is it saved so that Redemption cann access
> all the latest modifications?
>
> --
> Dmitry Streblechenko (MVP)
>
http://www.dimastr.com/> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "CoolSanil" <CoolSanil[ at ]discussions.microsoft.com> wrote in message
> news:0D52B9A2-7A0F-4179-AE50-FB44EA48DD84[ at ]microsoft.com...
> > Hello I want to receive recipients (address from TO,CC)from the incoming
> > mail
> > using Redemption for Outlook 2003. I am able to get recipients pointer
> > from
> > SafeMailItem. When i try to itrate trough recipients to get address of the
> > recipient it always give me null. But when i use Outlook::Recipient i get
> > recipients email addresss but for exchange users email address is in the
> > x400
> > format and i want in smtp format. So i have opted for redemption. How
> > should
> > I proceed to get Recipient from recipients. I am using ATL-COM to develop
> > addin.
> >
> >
> > Redemption::ISafeRecipientsPtr pSafeRecipients = NULL;
> > if(pSafeMailItemptr)
> > {
> > hr = pSafeMailItemptr->get_Recipients(&pSafeRecipients);
> > }
> >
> > //I get valid pSafeRecipients pointer
> >
> > long lCount = pSafeRecipients->Count //here lCount is always 0
> >
> > Redemption::ISafeRecipientPtr pSafeRecipient = NULL
> > hr = PSafeRecipients->Get_Item(1,pSafeRecipient)
> >
> > BSTR bstrAddress = pSafeRecipient->Address
> > //bstrAddress is always blank though there are recipients??
> >
> > am I wrong in doing so??
> >
>
>
> Hi Dmitry
I want to retrieve all information from the incoming mail and send it to