how retrieve email fields?

Login to reply to this topic.
Wed, 2007-10-31 13:45
Joined: 2007-10-17
Forum posts: 11

Hi!
I am developing a S60 3rd application.
I am trying to develop an application that retrieve me the email's fields (outbox). My code is:

CMsvEntry* Entry = iMsgSession->GetEntryL(KMsvSentEntryId); //iMsgSession is CMsvSession object
CleanupStack::PushL(Entry);
CMsvEntrySelection* entries = Entry->ChildrenL();
CleanupStack::PushL(entries);
CClientMtmRegistry* mtmreg = CClientMtmRegistry::NewL(*iMsgSession);
CSmtpClientMtm* smtpmtm = STATIC_CAST(CSmtpClientMtm*, mtmreg->NewMtmL(KUidMsgTypeSMTP));
CleanupStack::PushL(smtpmtm);
for(TInt i = (Entry->Count() - 1); i >= 0; i--)
        {
        const TMsvEntry& msventry = Entry->ChildDataL(entries->At(i));
        TPtrC ptr;
        if(msventry.iMtm == KUidMsgTypeSMTP)
                {
//....
//....
                }
        }
//pops and destroys

Inside conditional 'if(msventry.iMtm == KUidMsgTypeSMTP)' I put my code, that retrieve me the FIRST recipient on 'To' field.

How can I retrieve the rest of recipients? I retrieve the first recipient with 'iDetails' from 'TMsvEntry'
How can I retrieve the CC and BCC fields?

Thanks in advance!

  • Login to reply to this topic.