You Are Here:

Community: Wiki

This page was last modified 20:11, 24 March 2009.

How to send SMS

From Forum Nokia Wiki


ID Creation date March 15, 2007
Platform S60 1st Edition, S60 2nd Edition, S60 3rd Edition Tested on devices Nokia N95, Nokia E90
Category Python Subcategory Messaging


Keywords (APIs, classes, methods, functions): messaging

Overview

This snippet shows how to send SMS in Python.

Source file

import messaging
 
 
messaging.sms_send("number", u"message")

Postconditions

The message (in Unicode format) is sent to the specified number (in string format).

The underlying messaging subsystem in S60 devices might give error messages to the user if the device is not connected to a network while trying to send a message (an "SMS send failed!" note is a common error message). When sending messages in offline-mode or with no network connection these messages are actually added to an outgoing message queue and they might be sent if the device is later on connected to a suitable network. This occurs despite the possibly misleading error messages. The current network conditions can be checked e.g. with sysinfo.active_profile() and sysinfo.signal_bars() invocations.

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia