P
Paulem0071
I need to get a unique identifier for a mailitem, and access to EntryID is
throwing a "Type Library not Registered" error. Here is my code:
Outlook.Folder folder =
(Outlook.Folder)this.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
string filter = @"@SQL=(""urn:schemas:httpmail:fromemail"" = '" +
_mailItem.SenderEmailAddress + "' ";
Outlook.Items items = folder.Items.Restrict(filter);
items.Sort("[CreationTime]", true);
foreach (Outlook.MailItem mailItem in items)
{
if (mailItem != null)
{
if (mailItem.CreationTime != null)
{
string f = mailItem.EntryID; //cannot access
cDate = mailItem.CreationTime.ToString("MM-dd
HH:mm");
}
//call delegate
taskPane.ListAddItem(cDate);
}
}
Thank you. I need a unique identifer I can like back to to access the
original message item. Do not want to use sender and date/time . Thank you.
throwing a "Type Library not Registered" error. Here is my code:
Outlook.Folder folder =
(Outlook.Folder)this.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
string filter = @"@SQL=(""urn:schemas:httpmail:fromemail"" = '" +
_mailItem.SenderEmailAddress + "' ";
Outlook.Items items = folder.Items.Restrict(filter);
items.Sort("[CreationTime]", true);
foreach (Outlook.MailItem mailItem in items)
{
if (mailItem != null)
{
if (mailItem.CreationTime != null)
{
string f = mailItem.EntryID; //cannot access
cDate = mailItem.CreationTime.ToString("MM-dd
HH:mm");
}
//call delegate
taskPane.ListAddItem(cDate);
}
}
Thank you. I need a unique identifer I can like back to to access the
original message item. Do not want to use sender and date/time . Thank you.