How do you create a mailto: link without the (to) part
Asked Answered
H

4

96

How do you properly construct a mailto: link without the part. mailto:[email protected]? I dont want the address and just want whats in the parameters afterward to be filled in through the mailto.

Hannover answered 22/8, 2010 at 8:2 Comment(0)
E
214

Yes you can

mailto:?body=tisbody&subject=thisbethesubject
Ensilage answered 7/7, 2011 at 8:15 Comment(0)
K
6

Did you mean

<a href="mailto:"></a>
Kissable answered 22/8, 2010 at 8:3 Comment(0)
C
1
<a href="mailto:?subject=yoursubjecthere&amp;body=yourbodyhere">Share using Email</a>
Curet answered 16/5, 2018 at 10:5 Comment(0)
E
-14

You can use mailto in this way

<a href="mailto:[email protected]?subject=Subject&amp;cc=CC&amp;bcc=BCC&amp;body=BODY">Clickme!</a>
Eos answered 22/8, 2010 at 8:7 Comment(2)
The question specifically asked for it without the address, and that HTML is invalid.Hemlock
They only "invalid" part of the HTML is that your & should be &amp; although Mr. Dorward is right in saying you didn't actually answer the question posed.Phono

© 2022 - 2024 — McMap. All rights reserved.