How to link to a mail message in HTML?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 1481 | Points: 40
Answer:

The <a> anchor tag with href with the value as specifed is used to link to a mail message only if the mail is installed in the machine.
Spaces between words for the subject should be replaced by %20 to ensure that the browser will display the text properly

Example:
<html>

<body>
<p>
<a href="mailto:someone@dotnetfunda.com?Subject=Test%20mail">
Send Mail</a>
</p>
</body>
</html>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response