Jump to content

php mailto redirect causes Internet explorer 8 to call email client 2 times

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Lassar

Lassar

    Learning Programmer

  • Members
  • PipPipPip
  • 58 posts
I don't know if this is the right catagory in the forum.

My php mailto redirect causes Internet explorer 8 to open up 2 instances of my email client.

Tested Ie8 on in real XP OS and a virtual XP OS.


my email.php loks something like this (replaced my real email address with emailaddress@yoursite.com)

<?php
header ("Location: mailto:emailaddress@yoursite.com");
exit();
?>

I have something like the the following anchor, which I click on.

<a href="http://yoursite.com/email.php" rel="nofollow">Redirect Email address</a>


This works good in ie6 & ie9, firefox, chrome, opera, Apple Safari. (the email client is only opened up one time)

Is it just my code or is "internet explorer 8" just flaky.

Has anyone else noticed this?
Cole manager: You have 95 minutes to take the FCC GROL test.
Student: How many lifelines do we get ?

#2
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
You probably have a reason to do the redirection on the server, but just in case do you have consider to simply make a link to the url like so
<a href="mailto:email@domain.com">Email address</a>
?

#3
Lassar

Lassar

    Learning Programmer

  • Members
  • PipPipPip
  • 58 posts
I was trying the redirect, because google merchant policy does not seem to allow directly link to files or email addresses on the landing page.

Sound weird, I know.

Html meta refresh works, but not as fast as a redirect.
Cole manager: You have 95 minutes to take the FCC GROL test.
Student: How many lifelines do we get ?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users