i create a message in outbox using smtpmtm ,
SmtpMtm->CreateMessageL(TMsvId id);
then i get the TMsvEntry from smtpmtm and set the required values in it and
SmtpMtm->SwitchCurrentEntryL(message.Id());
SmtpMtm->AddAddresseeL(_L("u@ok.com"));
SmtpMtm->SetSubjectL(_L("subject"));
SmtpMtm->SaveMessageL();
then i get CMsvEntry& from smtpmtm as
CMsvEntry& entry = SmtpMtm->Entry();
on this entry object i open the store for editing ,set the richtext type message body and commit
the store.
entry.SetEntryL(message.iServiceId);
NOW WORKING WITH ABOVE LINES WHILE I CHANGE THERE POSITION UP AND DOWN TO MAKE THE CODE WORK I
GET ONE OF THE FOLLOWING ERRORS , THAT SAYS THE CMSVSTORE WAS NOT CLOSED , NOW CAN SOME ONE TELL
ME HOW DO I CLOSE THE CMSVSTORE OBJECT.
Category: MSGS
251
CMsvEntry object destroyed with associated message store left open
259
CMsvEntry::SetEntryL() called with associated message store left open
261
Client attempts to open already open message store through CMsvEntry