WebDevelopersNotes logo

home-icon Home / HTML / mailto enabling emailing on your web site

mailto enabling emailing on your web site

mailto enabling emailing on your web site

The anchor <a> tag can also be used for enabling emailing, which helps visitors to send feedback through your web site. This is all fine and dandy as long as the visitor has his email client configured to send emails. However, if this is not the case, his computer will inform the him about it and the email will not be sent till an email client is configured.

Using the mailto value along with an email address in the HREF attribute of the anchor tag will create a link, which when clicked will open the default email client.

<a HREF="mailto:manish@simplygraphix.com">
Send me your feedback on this tutorial</a>

Sponsored Links

This will be displayed as:
Send me your feedback on this tutorial

Click on the above link. If you have configured an email client such as Microsoft’s Outlook Express or Netscape Messenger, the program will open and you shall be able to send me an email.

Simple and neat, huh?

More information on the HTML mailto

The mailto attribute is a neat way to accept visitor feedback. You just need to insert a bit of HTML code with the email address to which messages will be delivered.

However, there are a few disadvantages. Firstly, mailto assumes that the visitor has configured at least one address on the default email program on his computer. Secondly, mailto is limited in scope. You can’t get formatted replies. Thus, it provides no option for you to specifically ask visitors for their name, email address, company name, telephone numbers etc. You can just provide pointers – how the message is written by the visitor is entirely up to them.

For details on the HTML mailto attribute, you should read The HTML mailto – HTML tips.

Sponsored Links

Your comments
Star icon IMPORTANT Have a question / problem? Click here to ask an expert.

Why we hate Internet Explorer?

Sponsored Links


How do I view a deleted web page?
Is there a way to view a deleted web page - one that is no longer available? Yes there is and the solution is quite simple. [more...]


The idea for Gmail was proposed by Rajen Sheth in an interview with Google. The email service was launched on 1st April 2004 with 1GB storage space which was 40 times of what was then offered by the competition. Most web users thought it was an April Fool's prank because Google is notorious for that. Initially, Gmail was available only to people who had special invites and this made it even more coveted. As its popularity grew, Gmail started to capture the web-based email market and, as of 2017, is the most popular free email service in the world. [more...]

We use cookies to give you the best possible website experience. By using WebDevelopersNotes.com, you agree to our Privacy Policy