You Are Here:

Community: Wiki

This page was last modified on 28 September 2009, at 07:51.

How to send email

From Forum Nokia Wiki

Reviewer Approved   


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

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).

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia