I'm new here, so I want to say hello to everybody before I start asking a questions
The code I'm using is based on the S60_Platform_POP_IMAP_Example_v1_1.
If I compile and install this exaple it works fine ("To:" and "CC:" reciepients are shown by this example application).
My code looks similar, but I'm not using CBaseMtmUi class to show emails on GUI - I just need to read this information to send it out via BT.
It seems to me I just need to do something additional than LoadMessageL(), or read it (recipients) in completely diferent way - CBaseMtmUi class is able to do it somehow using similar way (using CPop3ClientMtm as a source)Code:// here I get the pop3 email MsvEntry CMsvEntry* MsvEntry = iModel->GetMsvEntryL(EmailIndex); // I can read correct information about timestamp, // subject and sender of the email message TTime Timestamp = MsvEntry->Entry().iDate; TPtrC Subject = MsvEntry->Entry().iDescription; TPtrC SenderName = MsvEntry->Entry().iDetails; // then I create pop3 mtm CPop3ClientMtm* Pop3Mtm = static_cast<CPop3ClientMtm*>iModel->iClientReg->NewMtmL(KUidMsgTypePOP3)); CleanupStack::PushL(Pop3Mtm); Pop3Mtm->SwitchCurrentEntryL(MsvEntry->EntryId()); Pop3Mtm->LoadMessageL(); if (MsvEntry->HasStoreL()) { CRichText& RichText = Pop3Mtm->Body(); // here I can access the body of the email } else { //email has not been retrived from the server yet! } // the problem appears here: the following code always returns zero count... // recipients list is empty and I have no clue what's wrong... Pop3Mtm->AddresseeList().Count()); CleanupStack::PopAndDestroy(Pop3Mtm);
Any hint how to solve this problem will be appreciated.
Best regards,
--
Jakub




