Detailed description of mailto usage in Html

Source: Internet
Author: User

Mailto is a tag in HTML4.01. Of course, it can also be used in html5. it serves as a hyperlink to facilitate developers to send emails by calling the local system. Its basic syntax is as follows:

send email
For example, you can click this link to send an email to me.

Of course, you may not know that form is also possible, like this:

The basic syntax of mailto is simple. Its parameter list is as follows: 


To Recipients (separated by commas)
Suject Topic
Cc CC
Bcc Dark CC
Body Content (some mail clients support html statements

However, mailto has some small details. When you click the email hyperlink, you want the system to automatically open the email editing window, in addition to automatically entering the content in the recipient's address bar, in the CC address bar, if you can automatically enter the email address you need, you can directly Insert the email address in the html source code of the webpage, such as "mailto: 1 *** @ 1 ***. com? 2 ***** @ 2 *****. com, where 1 *** @ 1 ***. com will automatically appear in the recipient's address bar, 2 ***** @ 2 ***. com will automatically appear in the CC address bar,

Of course, if you want to send multiple addresses at a time can also be, then you can use statements like "mailto: aaa@163.com; bbb@163.com", remember each email with "; separate so that when the viewer clicks the e-mail hyperlink created by the statement, a recipient address such as aaa@21cn.com and bbb@21cn.com appears in the recipient address bar in the pop-up mail edit window, visitors can send emails to these users at the same time. How can this problem be helpful.

Finally, let's give you a standard mailto writing: Mailto: aaa@xxx.com? Cc = bbb@yyy.com & bcc = ccc@zzz.com & subject = subject & body = Email content

Hope you like it ~

Related Article

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.