×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    103

    How to read email attchments?

    Hi All,
    I am trying to get the attachments from received emails but without any success. I was trying to read it using the message architecture.I mean I was accessing the CMsvEntry of individual emails and trying to retrieve the attachments by the MMsvAttachmentManager associated with the store of the CMsvEntry.The entry shows that it has a store and I can even get the store size as some real values.But the store's HasBodyTextL() returns EFalse and the AttachmentManager() returns no sign of any attachments.(I mean the count of attachments is always zero.). But in fact the email received has some attachments. I am sure that I was at the correct child entry(email entry) as the number of those entries are the same as the received emails in my mailbox.
    Can any one clarify what is happening? Please guide me to solve this issue..

    Thanks in advance
    regards
    Rafeeq

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

    Re: How to read email attchments?

    Haven't actually tried retrieving them, but at least I know that they require ReadDevice and propably WriteDevice data capabilities.

  3. #3
    Regular Contributor
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    103

    Re: How to read email attchments?

    Hi Yucca,
    Thanks for replying.But I cannot read the attachments even if i grant these capabilities to my application.

    Any hints??
    regards
    Rafeeq

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Post Re: How to read email attchments?

    Hi, i found one solution:

    {
    CMsvEntry * iMsvEntry = ...

    // get attachment manager
    CImEmailMessage * iMsg = CImEmailMessage::NewLC( * iMsvEntry );
    MMsvAttachmentManager & attMan = iMsg->AttachmentManager();

    // in this case function return REAL number of EMail's
    // attachments
    TInt nAttCount = attMan.AtachmentCount();

    // do something with attachments...
    // cleanup

Similar Threads

  1. How To read SMS and dont change its status?
    By -=DeathDealer=- in forum General Messaging
    Replies: 2
    Last Post: 2006-09-02, 07:56
  2. email mtm help is needed
    By siemensc55 in forum Symbian
    Replies: 0
    Last Post: 2004-07-18, 18:58
  3. Email over SMS
    By arun95 in forum General Messaging
    Replies: 1
    Last Post: 2004-02-26, 13:48
  4. Problems send email with my 3650
    By davideikeland in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-21, 00:05
  5. Nokia EMail POP3 header issue
    By McHale in forum General Development Questions
    Replies: 2
    Last Post: 2004-01-10, 08:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×