Search DaTutorials:  
HOME
Html Tutorials
Basics
Forms
Frames
Hyperlinks and URLS
Images
Lists
Background
Colors
Fonts
Tables
Meta Tags
Events
Javascript Integration
Sound
Other
Search For a Tutorial
Html Reference

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


Online Html Forum  Discuss this tutorial in our HTML forum


     Car Finance | Loans | Music Festival | Secured Loans | Car Insurance
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp