
Originally Posted by
mycs
Hi!
In the application I am trying to make the number add 1 automatically,like this first recipient is 13805710571,the second recipient is 13805710572, the third recipient is 13805710573, and so on...
In principle this will work -
Code:
import appuifw
import messaging
sys.setdefaultencoding('utf8')
txt = "text!"
number = "13805710570"
i = 1
while (i<10):
num = str(int(number)+i)
messaging.sms_send(number,txt,'UCS2')
This would send your messages to all numbers from 13805710571 to 13805710579
However, Python on Symbian doesn't seem to handle numbers more than 9 digits long. So, a simpler option would be -
Code:
import appuifw
import messaging
sys.setdefaultencoding('utf8')
txt = "text!"
number = "1380571057"
i = 1
while (i<10):
num = number+str(i)
messaging.sms_send(number,txt,'UCS2')
Let me know if it works..