×

Discussion Board

Results 1 to 15 of 23

Hybrid View

  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,165

    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,165

    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,165

    Re: Not able to read emails using code

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

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