Skip to main content
sun_85
Participant
May 27, 2014
Question

Mailto: Link doesn't work in Safari

  • May 27, 2014
  • 1 reply
  • 2675 views

In my project, we have a link to open a outlook mail. when i open the link in IE/Chrome/Firefox browser, it opens the outlook with the given mail id. But, same link was not working properly in safari browser.

I am using safari version 5.1.7(7534.57.2). When i click the link, it opens the outlook mail, but my current(Parent) window gets crashed.

Below is the sample code i used.

mc.addEventListener(MouseEvent.CLICK, sendEmail);

function sendEmail(e:MouseEvent):void{

     navigateToURL(new URLRequest("mailto:name@domainname.com"));

}

Thank in advance

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 27, 2014

You could try specifying a new window and see if that helps.

     navigateToURL(new URLRequest("mailto:name@domainname.com"), "_blank");

But if not, the code is fine so the problem likely lies with the brower.

sun_85
sun_85Author
Participant
May 27, 2014

Thanks for your reply..

We already tried that too. But doesn't work.


My problem is after clicking the link, my current window became black screen and it opens the outlook with the given mail id

we are not sure, whether the issue is related to flash player or safari browser.

Any idea?

Ned Murphy
Legend
May 27, 2014

I already indicated it will most likely be an issue with the Safari browser.