Sending sms through mobile but that message should not get stored in sent items folder

Login to reply to this topic.
Mon, 2008-04-28 04:17
Joined: 2008-03-18
Forum posts: 32

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
classes and i am able to send message also but that msg sppears in sent items folder. Can any one help me out.

Regards,
Sweta


NEWBIE OF SYMBIAN


Mon, 2008-04-28 08:01
Joined: 2008-01-16
Forum posts: 69
Re: Sending sms through mobile but that message should not get s

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

Mon, 2008-04-28 08:12
Joined: 2008-01-16
Forum posts: 69
Re: Sending sms through mobile but that message should not get s

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. Smiling


Thanks & Regards,
Md.Khalid Ahmad

  • Login to reply to this topic.