Hi There
Firstly, great component, especially the CEMAPI stuff thats a real life save for me not having great C++ skills. I'm currently using the eval version 3.2 and looking forward to buying it permanently.
My problem is that whilst i can delete "emails" I cannot seem to delete email accounts totally. The code I use for deleting actual email is below:
InTheHand.WindowsMobile.PocketOutlook.OutlookSession acc = new InTheHand.WindowsMobile.PocketOutlook.OutlookSession();
int a = acc.EmailAccounts.Count;for (int i=0; i < a; i++ )
{
foreach (InTheHand.WindowsMobile.PocketOutlook.EmailMessage eACC in acc.EmailAccounts[ i ].Inbox)
{
MessageBox.Show(eACC.Subject);
eACC.Delete();
}
}
However I have been using the "RemoveAT" functionality of the emailaccounts collection but it just doesn't work and the accounts remain none the less.
The code I use for this is:
acc.EmailAccounts.RemoveAT(i);
I think the activeSync and any windows live accounts are not deletable but I do have a number of POP and IMAP accounts on the phone that should be deletable.
No errors are being thrown, the code executes but nothing happens on the device.
I am using an M3100 (Hermes) with WM6 on it but the same happens on a Symbol MC35 with WM5.
Any help is greatly appreciated.
DaveK