| 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 |
This snippet shows how to send SMS in Python.
import messaging
messaging.sms_send("number", u"message")
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.
No related wiki articles found