Export (0) Print
Expand All

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>


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft