How can I get default mail server
I have tried the following code but the system crashes

CMsvEntry* currentEntry = iMsvSession->GetEntryL( KMsvRootIndexEntryId );

CleanupStack::PushL( currentEntry );

CMsvStore* store = currentEntry->ReadStoreL();

CleanupStack::PushL(store);

CMsvDefaultServices defaultService;

defaultService.RestoreL( *store );


--
Best Regards
Shlomi

Live long and prosper