Html mailto tag details how to use

Source: Internet
Author: User

The mailto tag in HTML is a very practical and user-friendly label, and in most cases people use it.

<a href= "Mailto:[email protected]" >[email protected]</a>

In this way, when we click on the [email protected] link, the browser will automatically select the local default mail software for us and put the mailto tag [email protected] email address in the mail software's sending address, Less to the annoyance of sending an address when we send e-mail, but also to avoid the wrong email address.

In fact, mailto tags have a more practical way of using. For example: add mail Default title, CC address, BCC address, message content ....

Here's how to use it in detail:

1. Add a default title to a message

<a href= "mailto:[email protected]?subject= mail default title" >[email protected]</a>

2. Add the default CC address to the message

<a href= "Mailto:[email protected][email protected]" >[email protected]</a>

3. Add a default BCC address for mail

<a href= "Mailto:[email protected][email protected]" >[email protected]</a>

4. Add the default content to the message

<a href= "Mailto:[email protected]?body= welcome you to Phplamp Blog station-http://www.phplamp.org" >[email protected]</a>

5. Multiple email addresses

<a href= "Mailto:[email protected],[email protected]" >[email protected]</a>

6. To a comprehensive type: Add the default cc address, title, content

<a href= "mailto:[email protected][email Protected]&subject=phplamp Blog Station &body= welcome you to Phplamp Blog station-http:// www.phplamp.org ">[email protected]</a>

As can be seen from the above example, if there are multiple default values to add, and the mail address is connected to the character "?", the default value of the connection between the symbol is "&".

Html mailto tag details how to use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.