Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 05:38, 29 April 2008.

Inbox Sender

From Forum Nokia Wiki


This is a small working messaging application using PyS60. The script can be converted to a standalone selfsigned application by using py2sis tool or Ensymble.

No special capabilities are required by the application so it doesn't need to be signed by a developer certificate.

This application is used to forward the SMS in the inbox, without opening them.

This is done with the help of providing the SMS id and the recipient number as the input from the user.


Below is the code for the same.

#SMS Timer
#import the module inbox (that handles incoming sms things)
import inbox
#import the module e32
import e32
#import the module appuifw
import appuifw
#import the module messaging
import messaging
 
 
#set application title
appuifw.app.title=u"Inbox Sender"
 
# Define exit function
def exit_key_handler():
    app_lock.signal()
 
 
def fun():
        #Ask for number of SMS to forward
	r = appuifw.query(u"Type number of SMS to send:", "number")
        #Ask for recipient number
	no = appuifw.query(u"Type number of recipient", "text")
        while r>0:
		i=inbox.Inbox()
		m = i.sms_messages()
		id= appuifw.query(u"Type id of SMS:", "number")
		sms_text = i.content(m[id]) 
    		text= unicode(sms_text)
		r=r-1
		messaging.sms_send(unicode(no), text)
                #Read from inbox and send the SMS with the provided SMS_id to the recipient number 
 
#Run the main function
fun()
 
app_lock = e32.Ao_lock()
 
appuifw.app.exit_key_handler = exit_key_handler
app_lock.wait()


Here are some screenshots that demonstrate the working of the application

Image:Screenshot0047.jpgImage:Screenshot0048.jpg Image:Screenshot0049.jpg

Screenshot description :

1)Input no of SMS to Forward

2)Input Recipient number

3)Input SMS id to be forwarded

Related Discussions
Thread Thread Starter Forum Replies Last Post
How to get sms sender number? cars2003 General Symbian C++ 1 2005-05-12 12:15
7610 sms inbox Fogstar General Messaging 2 2005-10-28 06:29
What if I send a SMS to some random port? doctordwarf Mobile Java General 1 2003-07-24 04:33
c:\ del symbian.exe stuart_dunlevy General Symbian C++ 0 2004-12-09 04:43
Copying a file to 7650 Inbox rmuralidharan General Symbian C++ 1 1970-01-01 02:00
 
Powered by MediaWiki