| ID | Creation date | June 8, 2008 | |
| Platform | 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 email in Python.
Note: This method is available from S60 3.0 onwards (inclusive).
import messaging
attachment = "E:\\Images\\photo.jpg"
#The path of the file you wish to attach (optional)
messaging.mms_send("address", u"message", attachment)
#Where "address" is the email address of the recipient, like abc@xyz.com
The message (in Unicode format) along with the attachment is sent to the specified address (in string format).