Files
docs-desktop/dotnet-desktop-guide/framework/wpf/app-development/how-to-use-mailto-to-send-mail-from-a-page.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

21 lines
921 B
Markdown

---
title: "How to: Use mailto: to Send Mail From a Page"
ms.date: "03/30/2017"
helpviewer_keywords:
- "sending mail from pages with mailto:"
- "mailto:, sending mail from pages"
- "mail [WPF], sending from pages"
ms.assetid: b64b9518-df17-4232-94f2-455a4f77ee48
---
# How to: Use mailto: to Send Mail From a Page
This example shows how to use <xref:System.Windows.Documents.Hyperlink> in conjunction with a **mailto:** uniform resource identifier (URI).
## Example
The following code shows how to use a **mailto:** uniform resource identifier (URI) to open a new mail window that contains an email address, and email address and a subject, and an email address, subject, and body.
[!code-xaml[HOWTONavigationMailToSnippet#MailToMARKUP](~/samples/snippets/csharp/VS_Snippets_Wpf/HOWTONavigationMailToSnippet/CS/HomePage.xaml#mailtomarkup)]
## See also
- [Pack URIs in WPF](pack-uris-in-wpf.md)