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.
To step through this recipe, you need only the automatically generated project.
To prepare ...