tags:

views:

67

answers:

4

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.

A: 

Did you mean

<a href="mailto:"></a>
Delan Azabani
A: 

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>
rlbisbe
The question specifically asked for it without the address, and that HTML is invalid.
David Dorward
Should I delete the answer then? I'm new in the site
rlbisbe
Erik
Thanks for the clue, corrected.
rlbisbe
+1  A: 

You can't.

The purpose of a mailto: URI is to describe an email address. The stuff for filling in other headers was tacked on later.

There is no standard way to launch an email client with a specified subject, body, etc without specifying the email address.

David Dorward
is there a "non-standard" way? I'm trying all sorts of things with special characters. Testing a mailto: link in Firefox to Gmail. Basically I want it to skip down to the subject area, leaving the (to) field empty with no characters or spaces.
egfx
I'm not aware of any
David Dorward
A: 

You probably cannot omit the e-mail address.

However, you could put in an e-mail address that is clearly invalid, such that the user will know to replace it; you could for example use one of the reserved TLDs .example, .invalid, or .test.

stakx