Archived:How to send SMS using PySymbian
This snippet shows how to send SMS in Python.
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.