Share via


How to: Use mailto: to Send Mail From a Page

This example shows how to use 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.

<Hyperlink NavigateUri="mailto:username@domainname">mailto: With Email Address</Hyperlink>
<Hyperlink NavigateUri="mailto:username@domainname?subject=SubjectText">mailto: With Email Address and Subject</Hyperlink>
<Hyperlink NavigateUri="mailto:username@domainname?subject=SubjectText&amp;body=BodyText">mailto: With Email Address, Subject, and Body</Hyperlink>

See Also

Concepts

Pack URIs in Windows Presentation Foundation