Thank you for this solution, it has helped me today tremendously! In the spirit of Christmas sharing I thought it might be handy if I told you how I got around the SPAM problem ...
Instead of using the mailto: link, I linked it to my Contact Us page and then hacked that template to get the subject automatically populated. So for example on the products.tpl page I used:
Whilst on the product.tpl page I used:
In the contactus.tpl page I added this to the subject field:
Code:
<INPUT type="text" id="subject" name="subject" size="32" maxlength="128" value="{$userinfo.subject}{if $smarty.get.subject}{$smarty.get.subject}{/if}">