Hi. I'm new to COM/ATL development . I've build a COM add-in for Outlook 2010, using this tutorial as main source of information. http://msdn.microsoft.com/en-us/library/ee941475%28v=office.14%29.aspx.
When I click a button(that I specifically asign) , I want to save the body of emails(all the mails from inbox) in a text file . Can somebody give me an ideea how do i that? Any code snippet( in C++ ) would be great.
Thanks in advance.
edit:
i wrote a small piece of code to get the number of emails from inbox. Now i just need to get the body of emails . Any suggestion how i do that?
_ApplicationPtr pApp;
_NameSpacePtr pNamespace;
pApp->GetNamespace(L"MAPI");
MAPIFolderPtr InboxFolder = pNamespace->GetDefaultFolder(olFolderInbox);
_ItemsPtr mails = InboxFolder->Items;
const long count = mails->GetCount();
for(long i=1;i<=count;i++)
{
}