How to Send Email in WP7 using the EmailComposeTask? - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Thursday, April 19, 2012

How to Send Email in WP7 using the EmailComposeTask?

In the last blog post we learnt "How to Save Email Address in WP7 using the SaveEmailAddressTask?" where we shared code snippet of the internal implementation of the SaveEmailAddressTask along with the code implementation of a demo app.   Today in this blog post we will learn how to compose an email using the Windows Phone 7 SDK class called "EmailComposeTask". Also sharing the decompiled version of the class, so that you can know the SDK implementation. Continue reading and at the end don't forget to leave your feedback.   Know About the API Like all other launchers and choosers, "EmailComposeTask" is also a sealed class present inside the namespace Microsoft.Phone.Tasks . It exposes few properties to populate the email fields like "To", "Cc", "Bcc", "Subject", "Body" etc. The one and only one method named "Show()" opens up the Email Composer dialog in the screen.   Here is the meta data of the EmailComposeTask class:

No comments:

Post a Comment