My c sharp program currently gets outlook emails and imports them into a dataset. However, I am only getting the subject of each email.
I am using
intMailCount = olCurrFolder.Items.Count;
for (int i = 1; i <= intMailCount; i++)
strSubject = olCurrFolder.Items[i].Subject;
strEmailReceived = olCurrFolder.Items[i].Received;
The documentation for the Outlook MailItem object is here: http://msdn.microsoft.com/en-us/library/aa210946(v=office.11).aspx
You can use the
ReceivedTime property to get the received date and time.
The reason that intellisense sometimes doesn't work with VSTO is that many of the properties return a
dynamic. A dynamic is treated like an object that supports every method and property imaginable. This is what prevents intellisense from working. If you use a nonexistent method, it will compile, but fail at runtime.
I find the MSDN documentation is invaluable when working with dynamics in VSTO.