Reputation: 915
Newbie here, need to get a DateTime value for when each email was originally received.
EDIT: Added code. I have the item, I am just trying to get the time received but I cannot find the property for it.
foreach (MailItem item in mailItems)
{
emailDetails = new OutlookEmails
{
EmailFrom = item.SenderEmailAddress,
EmailSubject = item.Subject,
EmailBody = item.Body
};
listEmailDetails.Add(emailDetails);
ReleaseComObject(item);
}
Upvotes: 1
Views: 1029