Sending sms through mobile but that message should not get stored in sent items folder
| Mon, 2008-04-28 04:17 | |
|
Hi all, Can anyone tell me how to write code for sending sms but that message should not appear in sent items folder. I was using RSendAs, RSendAsMessage Regards, NEWBIE OF SYMBIAN |
|






Forum posts: 69
Hi Sweta,
use your send message logic and after sending just delete that message.
Pasting code example below to delete that message..
void CSmsEngine:DeleteL( TMsvId& aMessageId)
{
iSmsMtm->SwitchCurrentEntryL( aMessageId);
TMsvId parent = iSmsMtm->Entry().Entry().Parent();
iSmsMtm->SwitchCurrentEntryL( parent );
iSmsMtm->Entry().DeleteL( aMessageId);
iSmsId = 0;
}
Hope this will help you..
Thanks & Regards,
Md.Khalid Ahmad
Forum posts: 69
one more link,
http://www.forum.nokia.com/info/sw.nokia.com/id/5f17ccde-249e-4c7d-ace9-980095ea5db1/S60_Platform_SMS_Example_v2_0_en.zip.html
In this example check CSmsEngine::HandleSessionEventL commented EMsvEntriesMoved case.
This is same what you want.
Thanks & Regards,
Md.Khalid Ahmad