I need urgent help.I want to retrieve phone number from incoming SMS
Login to reply to this topic.
mar, 2009-06-30 13:38
Joined: 2009-06-30
Forum posts: 2

Hi EveryBody,

I want to retrieve only phone number from incoming SMS from my application which will be running in the background.I have tried all the examples in the wiki but I didn't get solution.When I tried CSMSHeader::FromAddress(),its returning blank descriptor.I tried MsvEntry::Entry::iDetails which was returning contact name if phone number is saved in contact name.Is it possible to retrieve phone number in S60 3rd edition application ? Please reply me .

Thanks in Advance,
J.Ramesh.


mer, 2009-07-01 12:33
Joined: 2003-12-05
Forum posts: 822

iSmsMtm->SmsHeader().FromAddress() should do it. If not, then the sender number is somehow hidden or something. You are testing this on device?

mer, 2009-07-01 12:39
Joined: 2009-06-30
Forum posts: 2

Hi Andreas,

Thanks a lot for your reply.

I have solved this issue.Now I am able to extract the phone number from incomin sms by using CSMSHeader::FromAddress().Earlier I was passing TMsVid of Inbox folder to iSmsMtm->SwitchCurrentEntryL() .Now I am passing TMsVid of new message.Now its working.

Regards,
J.Ramesh.


copyright 2003-2009 NewLC SARL