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

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>

Pack URIs in WPF

Show: