---
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)
