Six tips for "mailto"

Source: Internet
Author: User
As you know, mailto is a very practical html tag in web design and production. Many friends who have personal webpages like to write their own email addresses in the conspicuous position of the website, in this way, once a web browser clicks a super connection consisting of mailto, it can automatically open the default email client software in the current computer system, such as OutLook Express and Foxmail. Of course, the use of mailto labels is not just as simple as described above, but also has other applications. In order to help you have a comprehensive understanding of the mailto tag, I will make a detailed summary of the use of the mailto tag here, hoping to share with you!

1. If we create a super connection such as "mailto: webmaster @" on the webpage and click the super connection with the mouse, the browser will automatically call the system's default mail client program. At the same time, the recipient's address is automatically written in the recipient settings bar of the Mail editing window, while other content is blank and left to the visitor to fill in;

2. If you want the system to automatically open the email editing window when you click the email Super connection, in addition to automatically entering the content in the recipient's address bar, if you can automatically enter the email address you need in the CC address bar, you can directly insert the email address in the html source code of the webpage, such as "mailto: webmaster @? Tslxg@hotmail.com, where webmaster @ will automatically appear in the recipient's address bar and the tslxg@hotmail.com will automatically appear in the CC address bar;

3. If you want to automatically fill in the subject content of the email in the pop-up mail editing window, you can use the form "mailto: webmaster @? Subject = comments for the Webpage Tutorial network. "When a viewer clicks an email superconnection consisting of the statement, webmaster @ is automatically displayed in the address bar of the recipient in the subsequent email editing window, and the "comments for Webpage Tutorial network" is automatically displayed in the topic setting bar;

4. If you want to enter multiple email addresses in the recipient's address bar at the same time, you can use a statement like "mailto: webmaster @; tslxg@hotmail.com, remember that each email is separated by a comma (;), so that when the viewer clicks the email hyperlink created by the statement, the recipient address, such as webmaster @, tslxg@hotmail.com, appears in the recipient address bar in the pop-up mail edit window, and viewers can send emails to these people at the same time;

5. The email addresses displayed on the webpage are often searched by automatic search programs such as "mail-robot, in this way, other people can easily send a variety of spam to you using the searched email addresses. In order to reject these spam emails thousands of miles away, we can write the email addresses published on the web page as ASCII code, and remember to add "& #" before each ASCII code. For example, we can use "mailto: webmaster @ "to create an email Super connection, click this super connection and we will find that in the subsequent Mail sending and receiving window, the recipient's address bar still displays content such as webmaster @, and other automatic email search tools cannot correctly recognize such ASCII code, therefore, the number of spams received by users with unknown origins is greatly reduced;

6. Generally, when a viewer clicks the email superconnection, the system automatically fills in the recipient's address bar in the default mail client software, other settings are still blank. If you want to automatically enter the topic, CC, BCC, or even content, you can use the format "mailto:

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.