Explanation of mailto parameters

Mailto makes it easy for visitors to send emails to site administrators. There are many other things we can do with mailto. Mailto even automatically fills in Cc and Bcc in emails, or autofills the subject line.
  1) Basic mailto
  <a href="mailto:[email protected]">Click here to send me an email
  When the browser clicks this link, the browser will automatically call the default client email program, And automatically fill in the recipient's address below in the recipient box.
  2) Include the CC address
  Start with ?cc= after the recipient address, you can fill in the CC address, the sample code is as follows:
     <"mailto:[email protected][email protected] ">Send
  3) Include the Bcc address
  Immediately after the Cc address, write &bcc= to fill in the Bcc address.
  "mailto:[email protected][email protected]&[email protected]">Send
Note: When adding these functions, the first function starts with "?", followed by
  4) Include multiple recipients, CCs, BCCs   Use a semicolon to separate the addresses of multiple recipients: <a href= "  mailto:[email protected] .cn;[email protected]">Send   5) Include the subject   Use ?subject= to fill in the subject:





  a href="mailto:[email protected][email protected]?subject=Send Email"

Let's summarize below. Mailto is the recipient's address, cc is the cc address, bcc is the bcc address, subject is the subject of the email, and body is the content of the email. If there are multiple emails after Mailto For parameters, the first parameter must start with "?", and each subsequent one must start with "&". Here is a complete example: Mailto:[email protected][email protected]&[email protected]&subject=subject&body=mail content

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326608348&siteId=291194637