Hey can nebody give me ne idea about how to get the senders mobile number at the reciepient from the SMS.I am only able to get the senders name.
Rishabh
Hey can nebody give me ne idea about how to get the senders mobile number at the reciepient from the SMS.I am only able to get the senders name.
Rishabh
Ok this is a good solution but it can be na that the number is not in my list.Then wht to do...Is thr any way to xtract the number itself.
Rishabh
See this article for more info about using logs.Code:import logs l=logs.sms(mode='in') for i in range(len(l)):print l[i]["number"] #This prints the numbers of all SMSs in the inbox. For the most recent one, do this: print l[0]["number"]
Rishabh,
If the number isn't in your contact list, you will get the number using the Inbox module and not the name.
If you have a person's number in the phone book then only his name will come as the SMS address, otherwise it is the number that comes for an unknown number.
Best Regards,
Croozeus
Pankaj Nathani
www.croozeus.com
Hey can nebody tell me where to find the logs module it isnt in my currently installed version.I am not able to find it on net 2.
Please
Rishabh
I assume you've solved this problem, judging by your post in this thread.
Pankaj Nathani
www.croozeus.com
Ya i m able to use it now....but its not working properly.....as suggested when i use the logs module as follows:
l= logs.sms(mode='in')
and then check the length of l by len(l) it shows it to be 0.
Whats the problem here.
Plz help me yaar i m stuck in this problem for many days.
Rishabh
Pankaj Nathani
www.croozeus.com