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 ~