Abhishek
Abhishek

Reputation: 4340

javascript mailto:[email protected] results in 'failed to load resource' error...?

I have the following block:

<a href="mailto:[email protected]">Send me a mail!</a>

There's plenty of styles applied to the tag, but when I click the link, I get the error:

Failed to load resource mailto:[email protected]

From my testing, this appears to ONLY work in IE... Every other browser (firefox 4, Opera 11+, Safari 5.0.4 (or something like that) and Chrome 12) all do nothing upon clicking the link...

Ideas?

Upvotes: 1

Views: 2203

Answers (1)

RobG
RobG

Reputation: 147403

The mailto pseudo protocol has been supported by pretty much every user agent. It is included in HTML5 (more or less), so it should work everywhere. However some of its features are unreliable.

It will normally only fail if a default email client has not been assigned for the OS, or perhaps if application mappings in the user agent preferences aren't correctly set.

Upvotes: 3

Related Questions