I am using the following PHP script in a file that is linked to the e-mail address in lieu of the notorius "mailto:", which is read by spiders and sends SPAM.
<?PHP
$url = 'mailto:username@url.com';
header("Location: $url");
?>
The only problem I'm having is that in some browser environments
clicking this link directly opens the e-mail program (desired result)
while in other environments it opens a new page with
mailto:username@url.com in the header
then opens the e-mail program. (undesired result)
I've tested this in MSIE versions 4, 5 and 5.5 and have found
no consistency. Some machines give the desired result and others
do not.
Why is this happening and what is the workaround?