使用mailto:时是否可以设置电子邮件的主题/内容?
#1楼
您可以使用以下任一种方式将添加的主题添加到mailto命令。 将“主题邮件”添加到mailto标签。
<a href="mailto:test@example.com?subject=testing out mailto">First Example</a>
我们还可以通过在标记的末尾添加&body来在消息的正文中添加文本,如以下示例所示。
<a href="mailto:test@example.com?subject=testing out mailto&body=Just testing">Second Example</a>
除了正文,用户还可以键入&cc或&bcc来填写CC和BCC字段。
<a href="mailto:test@example.com?subject=testing out mailto&body=Just testing&cc=test1@example.com&bcc=test1@example.com">Third
Example</a>
#2楼
这是窍门http://neworganizing.com/content/blog/tip-prepopulate-mailto-links-with-subject-body-text
<a href="mailto:tips@neworganizing.com?subject=Your+tip+on+mailto+links&body=Thanks+for+this+tip">tell a friend</a>
#3楼
是:
使用它来试验mailto表单元素和链接编码。
您可以在表单中输入主题,正文(即内容)等,单击按钮,然后查看可以粘贴到页面中的mailto html链接。
您甚至可以指定电子邮件中鲜为人知和使用的元素:抄送,密件抄送。
#4楼
我将其分成几行以使其更具可读性。