I'm using an email address-hiding script to keep the spam bots out. It works great everywhere except, apparently, in AOL.
In Mac AOL, the script attempts to start a new email message in Apple Mail, not AOL's mail program. In PC AOL it just generates a page error.
The invoking link looks like:
http://www.pacifichorticulture.org/email/redirect_mailto.php?u=customerservice&d=pacifichorticulture.org&from=/contact-us.php
And the script that's invoked looks like:
<?php
$s = '';
if (!empty($_GET['s']))
{
$s = '?subject=' . $_GET['s'];
}
header("Location: mailto:$_GET[u]@$_GET[d]$s");
?>
<?php if (!empty($_GET['from'])) : ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0;URL=<?php echo $_GET['from']; ?>" /></head>
</head>
<body></body>
</html>
<?php endif; ?>
The first part launches the user's email client with an addressed message, and the second part bounces the browser back to the requesting page. It's definitely the first part (header("Location:...etc) that isn't working - I commented out the latter part and the problem still occurs.
Oddly, after hitting refresh a bunch of times, I got the New Email window, twice I think. Nothing consistent.
Anybody know anything about this behavior - AOL and header/location?