Open the default email program using a link
Description:
How to open the default email program using a link.
Code:
<html>
<body>
<a href="mailto:support@microsoft.com?subject=Hello%20Support">
Click here to send email</a>
</p>
</body>
</html>
Play with the code:
See working example:
Explanation:
To open the default email program using a link, you have to use the <a> tag and set its property href to hold the email address with prefix mailto:.
If you want the subject field of the mail program to be filled, write ?subject= after the email address and then write the subject.
See Also:
HTML: Html, Body, Br, A, P
|