As we all know, mailto is a very practical html tag in web design and production. Many friends who have personal web pages like to write their email addresses in prominent locations on the website. In this way, once web browsers click on the super connection composed of mailto with their mouse, they can automatically open the default email client software in the current computer system, such as OutLook Express and Foxmail.
However, since the handling of mailto event connections by various operating systems and mail clients is inconsistent, attention should be paid to when applying them in actual applications;
1. Basic syntax<a href=mailto:[email protected]>send email</a>
or
<form action=mailto:[email protected]>
</form>
Parameter list:
| to | Recipient (used between multiple; divided) |
| suject | theme |
| cc | Cc |
| bcc | Censored cc |
| Body | Content (some email clients support html format statements) |
Link string
<a href=mailto:[email protected]?subject=testtitle&[email protected]&body=this is body>send mail</a>
Form method
Copy the code