Mail Links
The mailto
scheme is used to launch the Mail app and open the email compose sheet. When specifying a mailto
URL, you must provide the target email address. The following examples show strings formatted for Safari and for native apps.
HTML link:
<a href="mailto:[email protected]">John Frank</a>
Native app URL string:
mailto:[email protected]
You can also include a subject field, a message, and multiple recipients in the To, Cc, and Bcc fields. (In iOS, the from
attribute is ignored.) The following example shows a mailto
URL that includes several different attributes:
mailto:[email protected][email protected]&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20here! |
For detailed information on the format of the mailto
scheme, see RFC 2368.
Copyright © 2017 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2017-09-19