I tried retrieving emails using following wiki article:
http://www.developer.nokia.com/Commu...-mail_contents
It gives correct number of email accounts,but as I try to retrieve mail body,the app crashes on device without generating any panic code.
I tried retrieving emails using following wiki article:
http://www.developer.nokia.com/Commu...-mail_contents
It gives correct number of email accounts,but as I try to retrieve mail body,the app crashes on device without generating any panic code.
there is always process exit code which you could get for all crash events: http://www.developer.nokia.com/Commu...ded_panic_code
Now I got the reason for app crash: Panic IMCM 10 in following line
CImEmailMessage* emailMessage = CImEmailMessage::NewLC(*entry);
emailMessage->GetBodyTextL(emailId,CImEmailMessage::EThisMessageOnly,*richText,*paraFormatLayer,*charFormatLayer);
which means " aMessageId is not of type KUidMsvMessageEntry"
How to use it??
never used the API really, anyway as the wiki page you have visited, does have full project, you should download it and see how things are handled inside it.
Anyway, do check what the emailId is, and make sur eit is message ID for entry.
emailid is defined as following:
CMsvEntry* msvEntry = iSession->GetEntryL(mailboxId);
CMsvEntrySelection *msvEntrySelection;
TMsvId emailId = msvEntry->ChildDataL(msvEntrySelection->At(index1)).Id();
Where do you get the msvEntrySelection ? and are you sure you are handling Email ?
TMsvId mailboxId = imap4Accounts[index].iImapService;
CMsvEntry* msvEntry = iSession->GetEntryL(mailboxId);
CMsvEntrySelection *msvEntrySelection = msvEntry->ChildrenL();
One more interesting thing, I am getting this panic only when tryng to read Imap account mails. If I test it for POP it works well
Is someone there who can help me in reading mails from IMAP account??
Hello,
which IDE are you using? From previous posts i'd assume Carbide....? For which platform? Emulator or device?
regards,
pg
device.. and I am getting different results on FP1 and FP2. Yes, I am using carbide with sdk for 3rd edition FP2