View Single Post
  #6  
Old February 3rd 09, 10:42 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default How to change recipients of a received message?

void __stdcall CPlug1::OnNewMailEx(BSTR EntryId)
{
Outlook::_NameSpacePtr m_NameSpacePtr = m_spApp-ActiveExplorer()-
GetSession();

if(m_NameSpacePtr == NULL)
{
return;
}
Outlook::_MailItemPtr MailItem = m_NameSpacePtr-GetItemFromID(_bstr_t
(EntryId));
//do other things
}
The code can work with most of the case but encrypted MailItem, again, What
should i do then?

PR_DISPLAY_TO is not settable.
NewMail event (unlike NewMailEx) does not pass the new message as a

[quoted text clipped - 6 lines]
were changed.
What should i do then?


--
Message posted via http://www.officekb.com

Ads