Six application techniques of "mailto"

Source: Internet
Author: User
Tags functions mail window client
Skills

As you know, mailto is a very useful HTML tag in web design, and many friends with personal pages like to write their own email address in the eye-catching location of the site, so that once the Web browser clicks a super connection made up of mailto with the mouse, You can automatically open the default e-mail client software in your current computer system, such as Outlook Express and Foxmail. Of course, the use of mailto tags is not just as simple as the above, it has other applications. In order to help users have a comprehensive understanding of the Mailto label, the author here on the use of mailto label to do a detailed summary, I hope to share the exchange with you!

1, if we create a "mailto:aaa@21cn.com" in the Web page such as a super connection, with the mouse click the Super connection, the browser will automatically call the system default mail client program, while in the Mail editing window in the recipient settings bar automatically write the address of the recipient, The other content is blank, leaving visitors to fill out their own;

2, if you click on the email super connection, I want the system to automatically open the e-mail editing window, in addition to automatically fill in the Address bar of the recipient, in the CC address bar can also automatically fill in the e-mail address you need, you can directly in the page's HTML source code into the form of " Mailto:aaa@21cn.com?bbb@21cn.com "Such statement, where aaa@21cn.com will automatically appear in the recipient address bar, Bbb@21cn.com will automatically appear in the CC address bar;

3, if you want to be in the pop-up Mail editing window can automatically fill in the subject content of the message, you can use the form such as "mailto:aaa@21cn.com?subject= ' mailto ' application tips titbits" Such HTML statements, When a viewer clicks an e-mail hyperlink made up of the statement by using the mouse, aaa@21cn.com appears automatically in the recipient address bar of the subsequent open Mail editing window, and the theme settings bar automatically appears "mailto ' Application tips titbits";

4. If you want to enter multiple e-mail addresses in the address bar of the recipient, you can use statements such as "mailto:aaa@21cn.com;bbb@21cn.com" to remember that each e-mail message is separated by a ";" This way, when a viewer clicks on an e-mail hyperlink created by the statement, a recipient address such as aaa@21cn.com and Bbb@21cn.com appears in the recipient's address bar of the pop-up mail editing window, and the viewer can send e-mail to those people at the same time;

5. The email address appearing in the web page is often searched by a number of automatic search programs such as "Mail-robot", so that other people can easily use the email address to send you all kinds of spam, in order to be able to reject these spam messages thousands of miles away, We can write an e-mail address that is open on a Web page in ASCII form, and remember that every ASCII code must precede the addition of "&#", for example, if we use a statement like "Mailto:aaa@21cn.com" in a Web page to create an email hyperlink, After clicking the Super connection, we found that in the next Open Mail Transceiver window, Aaa@21cn.com is still displayed in the recipient's address bar, and other kinds of automatic mail search tools do not correctly identify such ASCII code, so users receive a variety of unknown spam will be greatly reduced;

6. In general, when the viewer clicks the email hyperlink, the system in the default open mail client software, only automatically in the recipient address bar fill in the content, while the other settings bar is still displayed as blank, if you also want to automatically theme, CC, dark send even the contents of the words, you can use the form of " mailto:aaa@21cn.com?cc=bbb@21cn.com&bcc=ccc@21cn.com&subject= ' mailto ' Application tips titbits &body=mailto tags for a comprehensive application of examples! "This statement, in which the first function in this statement is"? " The beginning, each subsequent function begins with "&", and when you click the e-mail address with the mouse, in the subsequent Open Mail editing window, we will see that the aaa@21cn.com is automatically filled in the recipient's address bar and automatically filled in the CC address bar bbb@ 21cn.com, in the dark Send the address bar automatically fill in the Ccc@21cn.com, in the subject line automatically fill in the "' mailto ' application skills titbits", in the body of the letter will automatically appear "mailto tag comprehensive application examples! "Such a text.

The aaa@21cn.com, bbb@21cn.com, Ccc@21cn.com are all for the convenience of the description, and by the author at will set, we can according to their own requirements, with their own real e-mail address to replace them; In addition, if you want to use Mailto to implement multiple functions at the same time, the first feature must be "?" At the beginning, each of the following functions begins with "&"; In addition, CC is the CC address, BCC to send the address after subject, after the subject of the message, the body after the content of the message.



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.