Create a mail directory, and make an .htaccess file there with the following code:
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# With subject - mail/domain/com/user/subject
RewriteCond %{REQUEST_URI} ^/mail/(.*)/(.*)/(.*)/(.*)$
RewriteRule ^.* mailto:%3@%1.%2?subject=%4 [R,L]
# No subject - mail/domain/com/user
RewriteCond %{REQUEST_URI} ^/mail/(.*)/(.*)/(.*)$
RewriteRule ^.* mailto:%3@%1.%2 [R]
Now to create a mailto link use the following format:
Code:
http://s.com/mail/quan/com/tom => equals tom@quan.com
or
http://s.com/mail/quan/com/tom/test => equals tom@quan.com with the subject "test"
The email address never really shows up on the web page, so harvesters will miss it.