×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Not able to read emails using 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.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,177

    Re: Not able to read emails using code

    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
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using 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??

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,177

    Re: Not able to read emails using code

    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
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    that code also giving same problem. I tried that also

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,177

    Re: Not able to read emails using code

    Anyway, do check what the emailId is, and make sur eit is message ID for entry.

  7. #7
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    emailid is defined as following:

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

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,177

    Re: Not able to read emails using code

    Where do you get the msvEntrySelection ? and are you sure you are handling Email ?

  9. #9
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    Na I am not sure about that

  10. #10
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    TMsvId mailboxId = imap4Accounts[index].iImapService;
    CMsvEntry* msvEntry = iSession->GetEntryL(mailboxId);
    CMsvEntrySelection *msvEntrySelection = msvEntry->ChildrenL();

  11. #11
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    Champions Help!!!

  12. #12
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    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
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    Is someone there who can help me in reading mails from IMAP account??

  14. #14
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Not able to read emails using code

    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
    Join Date
    Jun 2012
    Posts
    54

    Re: Not able to read emails using code

    device.. and I am getting different results on FP1 and FP2. Yes, I am using carbide with sdk for 3rd edition FP2

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
  •  
×