4

I am having some issues with the mailto on IE 9. The problem is that after pressing on the mailto link, IE 9 tries to open the URL with the mail address and after some seconds I get a page redirect and the outlook (which is the program associated to the mailto protocol) finally opens.

For example: I click on the mailto link -> A new tab opens with this address -> "mailto:diego@maradona.com" and the page displays the "Internet Explorer cannot display the webpage" error. Then outlook opens fine.

Facts:

  • If I try to open a mailto from the internet, it works perfect, the problem is only with intranet site
  • If I open the mailto from a local html (not on IIS), it works perfect
  • I can open the mailto fine on IE 7 and 8

I found a "dirty" solution to this problem, I have added a hidden Iframe inside the page and a function to change the src attribute as needed.

function doMailto(mailto) {
        document.getElementById("iframe").src = "mailto:" + mailto;
    }
  • It is probably the configuration in IIS for handling the mailto-type (MIME?) – Michael Olesen Nov 01 '11 at 22:37
  • @Michael9000 IIS is not responsible for understanding what to do with the protocol*. for instance the `tel:` link is handled by your browser, no request is sent to the server. *while I know IIS handles the protocol down range, it's not here. – Eonasdan Nov 02 '11 at 16:02
  • Your dirty solution is the only way I've found around this issue, thanks. – kevhender Sep 24 '13 at 14:29

0 Answers0