Hi and welcome to the Python discussion board.
I believe this will wok for you:
Code:
import inbox, logs, e32, appuifw
a=e32.Ao_lock()
def quit():a.signal()
appuifw.app.exit_key_handler=quit
def handle_outgoing_message(msg_id):
#Now you just get whatever info you need. For example, the recipient's number:
m=logs.sms(mode='out')[0]
print "Message sent to "+str(m["number"])
#Set the inbox as outbox. I know it sounds weird, but it works
io=inbox.Inbox(inbox.EOutbox)
#Wait for an outgoing message, and when there is one, call a function to retrieve the info
io.bind(handle_outgoing_message)
a.wait()
Just add whatever you might need to this snipper and it should work.