{"id":54756,"date":"2018-06-08T22:16:45","date_gmt":"2018-06-08T20:16:45","guid":{"rendered":"https:\/\/samuelchopard.ch\/wiki\/?p=54756"},"modified":"2019-03-18T14:29:17","modified_gmt":"2019-03-18T13:29:17","slug":"add-subject-and-body-text-to-mailto-link","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/add-subject-and-body-text-to-mailto-link\/","title":{"rendered":"Add subject and body text to mailto: link"},"content":{"rendered":"<p><!--more--><br \/>\nAdd the following at the end of the mailto: href value:<\/p>\n<pre class=\"EnlighterJSRAW\">?subject=This is the subject!&amp;body=This is the body.<\/pre>\n<p>And replace <em>This is the subject!<\/em> by the subject and <em>This is the body.<\/em> by the body text.<\/p>\n<p>Note that you also have the possibility only use the subject without adding any body text. To do so, remove the last part:<\/p>\n<pre class=\"EnlighterJSRAW\">&amp;body=This is the body.<\/pre>\n<p>Example of use:<\/p>\n<pre class=\"EnlighterJSRAW\">\n<a target=\"_blank\" href=\"mailto:youremail@domain.com?subject=This is the subject!&amp;body=This is the body.\">Contact us<\/a>\n<\/pre>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/www.computerhope.com\/issues\/ch000056.htm\">https:\/\/www.computerhope.com\/issues\/ch000056.htm<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Add the following at the end of the mailto: href value: ?subject=This is the subject!&amp;body=This is the body. And replace [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[97,160,174],"class_list":["post-54756","post","type-post","status-publish","format-standard","hentry","category-htmlcss","tag-email","tag-link","tag-mailto"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=54756"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54756\/revisions"}],"predecessor-version":[{"id":54839,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54756\/revisions\/54839"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}