Forum Moderators: phranque
<a href="mailto:whoever.com?subject=Link%20Request&body=Can%20I%20link%20to%20you">
This works in some email browsers, butnot in all it shows the %20 between the words,
Is there another way or is this about it?
Consider also that it's pretty darn easy to set up a PHP email contact form or ASP form if you have access to that. For instance, I use hotmail for everything, so clicking mailto links for me stinks for me. This will allow anyone and his dog to fill out the form, and you can even include "required fields" like phone number, etc.
And I believe this is "built in" with PHP:
[us4.php.net...]
Lots of examples out there in Google for each. Forms look much more professional online and are easier for users to use.
with the & sign the page will not validate at w3c
Try replacing & with & - that should do the trick.
Having said that, I too would usually favor using a PHP or perl script and a web form rather than a mailto: link opening the user's email client. Their email client may not be configured correctly, or they may be on a public computer, or they may have a hotmail address, etc., whereas a web form will work fine in these cases. What's more, using a web form with a hidden recipient email address means that your address will be better protected from spam-bots scanning your pages for email addresses.