I have been asked to extract the mail from an outlook account problematically.
I have go so far but what I am getting is the entire email's trail. Is there a means to get this information.
private void btnAddToSupportCall_Click(Office.CommandBarButton ctrl, ref bool cancel)
string delimeter = "x###x";
var emailAddress = this.Application.ActiveExplorer().Session.CurrentUser.AddressEntry.GetExchangeUser().PrimarySmtpAddress;
Outlook.MailItem mailItem = Inspector.CurrentItem as Outlook.MailItem;
string str = mailItem.SenderName + delimeter + mailItem.SenderEmailAddress + delimeter + mailItem.Subject + delimeter + mailItem.Body + delimeter + mailItem.ReceivedTime.Date.ToShortDateString() + delimeter + mailItem.ReceivedTime.ToShortTimeString();
new FormAddEmailToSupportCall(str, delimeter, emailAddress).ShowDialog();