O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

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

Composing an e-mail message

While developing UWP applications, it is also possible to programmatically open an external e-mail client. Of course, you can configure a new message by setting its recipients, subject, body, or even choosing files that should be attached. In this recipe, you will learn how to compose an e-mail message with a few variants.

As an example, you will create an application that composes a new e-mail message in a few ways, namely with various recipients (as To, CC, and BCC), a predefined subject, a body, and importance, as well as with an attachment selected by the user from the .jpg files available on the device.

Getting ready

To step through this recipe, you need only the automatically generated project.

How to do it...

To prepare ...

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