Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 16:30, 4 December 2008 by bogdan.galiceanu (Talk | contribs)

Archived:How to send email using PySymbian

From Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90
CompatibilityArticle
Keywords: messaging
Created: (08 Jun 2008)
Last edited: bogdan.galiceanu (04 Dec 2008)

Contents

Overview

This snippet shows how to send email in Python.

Preconditions

Note: This method is available from S60 3.0 onwards (inclusive).

Source code

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

Postconditions

The message (in Unicode format) along with the attachment is sent to the specified address (in string format).

49 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×