Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    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.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    there is always process exit code which you could get for all crash events: http://www.developer.nokia.com/Commu...ded_panic_code

  3. #3
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    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??

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    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.

  5. #5
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    that code also giving same problem. I tried that also

  6. #6
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Anyway, do check what the emailId is, and make sur eit is message ID for entry.

  7. #7
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    emailid is defined as following:

    CMsvEntry* msvEntry = iSession->GetEntryL(mailboxId);
    CMsvEntrySelection *msvEntrySelection;
    TMsvId emailId = msvEntry->ChildDataL(msvEntrySelection->At(index1)).Id();

  8. #8
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Where do you get the msvEntrySelection ? and are you sure you are handling Email ?

  9. #9
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    Na I am not sure about that

  10. #10
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    TMsvId mailboxId = imap4Accounts[index].iImapService;
    CMsvEntry* msvEntry = iSession->GetEntryL(mailboxId);
    CMsvEntrySelection *msvEntrySelection = msvEntry->ChildrenL();

  11. #11
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    Champions Help!!!

  12. #12
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    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

  13. #13
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    Is someone there who can help me in reading mails from IMAP account??

  14. #14
    Nokia Developer Champion pavarang's Avatar
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    574
    Hello,
    which IDE are you using? From previous posts i'd assume Carbide....? For which platform? Emulator or device?
    regards,
    pg

  15. #15
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    device.. and I am getting different results on FP1 and FP2. Yes, I am using carbide with sdk for 3rd edition FP2

Page 1 of 2 12 LastLast

Similar Threads

  1. Mail for Exchange cannot read body of emails
    By role77 in forum General Messaging
    Replies: 4
    Last Post: 2010-09-08, 09:43
  2. How to read Emails from our application?
    By SymbianTH in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2010-02-24, 09:39
  3. Read Imsi code
    By slackware15 in forum Open C/C++
    Replies: 35
    Last Post: 2009-11-07, 10:49
  4. Public API's to read emails from Mail For Exchange
    By Priju Jacob Paul in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2009-03-20, 06:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved