O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing an Email with the EmailComposeTask

The EmailComposeTask launches the Windows Phone Email application, which displays a page allowing the user to create a new email.

Note

The email is not sent until it is initiated by the user.

You can optionally specify recipients, a message subject, and a message body, which are prepopulated in the new email, as shown in the following excerpt:

EmailComposeTask task = new EmailComposeTask                              {                                  To = "name1@example.com",                                  Cc = "name2@example.com",                                  Subject = "Windows Phone",                                  Body = "Hi from Windows Phone!"                              }; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required