Ronx said:
<a href="mailto:
[email protected]&subject=yoursubject&body=yourmessage">Click
here to email</a>
should be
<a href="mailto:
[email protected]?subject=yoursubject&body=yourmessage">Click
here to email</a>
You will be limited to a total of 256 characters for the entire link. Any
spaces after the ? should be replaced with + e.g message+body+is+here,
otherwise the recipient may see message%20body%20is%20here.
mailto links do not work in all browsers/email clients.
Note that to avoid harnessing by spam bots, you should always protect your
mailto links by generating them through some javascript, like:
<script type="text/javascript" language="Javascript"><!--
var e='yoursite';e='you'+'@'+e+'.com';
var subject='your subject';
var body='your small text body';
document.write('<a href="mailto:'+e+'?subject='+urlencode(subject)+
'&body='+urlencode(body)+'">Click here to email</a>');
//--></script><noscript>(email address protected against spam robots, please
enable Javascript to view it)</noscript>
Of course, it's best to use forms processed by your own web server in order
to send emails to an hidden address. Note however that the form processor
will run on your server.
If it processes the form to send an actual email, the web server itself will
be the sender. Be careful to check that the form processor cannot be used by
spammers to send emails to random users, or your website will be tracked as
an unsafe relay, and considered as the spammer source.
Today, it's often simpler to install a online forum or BBS, stored and
managed completely by your web server, and where you can even include a
private section, where users can write privately.
If you don't want your users to create an online account to write you, then
use a simple contact form that stores messages on the web server files space
(create a protected administration page to consult these messages and manage
your replies and clean up old messages).
If you don't want to use web storage for these messages, use a separate
email address for your contacts through this form, and prepare your email
client to receive these messages sent only by your web form processor (don't
reveal this email address anywhere, use a long and complex email address
hidden in the script source of the web form processor).