当我使用mailto:时,是否可以设置电子邮件的主题/内容?


当前回答

是的:

使用它来试验mailto表单元素和链接编码。

你可以输入主题,主体(即内容)等到表单,点击按钮,看到mailto html链接,你可以粘贴到你的页面。

你甚至可以指定很少被知道和使用的元素:抄送,密件抄送,从电子邮件。

其他回答

我把它分成几行,让它更容易读。

<a href="

    mailto:johndoe@gmail.com

    ?subject=My+great+email+to+you

    &body=This+is+an+awesome+email

    &cc=janedoe@gmail.com

    &bcc=billybob@yahoo.com

">Click here to send email!</a>

诀窍在这里 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>

是的:

使用它来试验mailto表单元素和链接编码。

你可以输入主题,主体(即内容)等到表单,点击按钮,看到mailto html链接,你可以粘贴到你的页面。

你甚至可以指定很少被知道和使用的元素:抄送,密件抄送,从电子邮件。

<a href="mailto:manish@simplygraphix.com?subject=Feedback for 
webdevelopersnotes.com&body=The Tips and Tricks section is great
&cc=anotheremailaddress@anotherdomain.com
&bcc=onemore@anotherdomain.com">Send me an email</a>

您可以使用此代码设置主题,正文,抄送,密件

是的,你可以这样做:

mailto: email@host.com?subject=something