M
mithilesh
Hi,
I'm trying to use outlook 2003 and access mail from public folder.
storeId and mail Count is giving result but access mail mi.Subject have no
any output. I am losing any scop for public folder.
Outlook.NameSpace mapiNamespace = applicationObject.GetNamespace("MAPI");
Outlook.MAPIFolder inboxFolder =
mapiNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olPublicFoldersAllPublicFolders);
Outlook.MAPIFolder addinboxFolder =
inboxFolder.Folders["Public_folder"];
string storeId = addinboxFolder.StoreID;
MessageBox.Show(addinboxFolder.Items.Count.ToString(), "Count");
MessageBox.Show(storeId, "storeId ");
foreach (object oitems in addinboxFolder.Items)
{
MailItem mi = oitems as MailItem;
MessageBox.Show(mi.Subject);
}
I'm trying to use outlook 2003 and access mail from public folder.
storeId and mail Count is giving result but access mail mi.Subject have no
any output. I am losing any scop for public folder.
Outlook.NameSpace mapiNamespace = applicationObject.GetNamespace("MAPI");
Outlook.MAPIFolder inboxFolder =
mapiNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olPublicFoldersAllPublicFolders);
Outlook.MAPIFolder addinboxFolder =
inboxFolder.Folders["Public_folder"];
string storeId = addinboxFolder.StoreID;
MessageBox.Show(addinboxFolder.Items.Count.ToString(), "Count");
MessageBox.Show(storeId, "storeId ");
foreach (object oitems in addinboxFolder.Items)
{
MailItem mi = oitems as MailItem;
MessageBox.Show(mi.Subject);
}