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!"                              }; ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.