Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SMS_Demo.py
- import messaging, appuifw
- help(messaging)
- print 'SMS Demo'
- ddd=1235551234 # <<< Note: pseudo contact number
- msg=u'This text was sent VIA SMS_Demo.py'
- num=appuifw.query(u"Enter Number: ", "number", u"")
- try:
- if len(num) <10:
- num=ddd
- except:
- num=ddd
- print 'Invalid Query! ... Sending Demo Text To', num
- try:
- messaging.sms_send(u'%d' % (num), msg)
- except: print "SMS Unable To Send!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement