Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailto links do nothing in Chrome but work in Firefox?

It seems like the mailto links we're embedding in our website fail to do anything in Chrome, though they work in Firefox.

Simple example here: http://jsfiddle.net/wAPNH/

<a href='mailto:[email protected]'>hi this is a test</a>

Do we need to do something special to enable mail links in Chrome?

like image 991
Crashalot Avatar asked Sep 28 '22 06:09

Crashalot


People also ask

Why is mailto not working in Chrome?

Log in to your email account (it's a required step to edit settings). Choose “Mail” from the menu and then “Preferences”. Change the default client in the first dropdown list. If you want Chrome and Gmail to open mailto links for you by default, make sure Google Chrome is picked as the default client on either OS.

Why are hyperlinks not working in Chrome?

Most likely problems with opening hyperlinks are connected with either the security restrictions of your Internet browser that doesn't allow opening pop-up windows, or with your Flash player plug-in that prevents you from opening URLs in local Flash files.

How do I change my mailto settings in Chrome?

Google ChromeClick Show Advanced Settings at the bottom of the page. Under "Privacy," click Content Settings. Scroll down to the "Handlers" section, and click the Manage Handlers button. Select your desired, default email client (e.g. Gmail).


2 Answers

This is browser settings specific, i.e. it will behave differently depending on the user's browser settings. The user can change how mailto: links behave in chrome by visiting chrome://settings/handlers, or Chrome Settings->Content Settings->Manage Handlers...

If "email" is not listed on that page, then see this answer regarding how to proceed.

like image 149
kennypu Avatar answered Oct 09 '22 19:10

kennypu


This is because chrome handles the mailto in different way. You can go to chrome://settings/handlers and make sure that which is the default handler. In your case it will be none (i.e. not listed). Now go to gmail.com. You should see something like this when you click on the button beside the bookmark button.

Set mailto in chrome

If you wish to open all email links through gmail then set "Use Gmail". Now when you click on mailto button, chrome will automatically opens in gmail.

like image 124
Rajesh Hegde Avatar answered Oct 09 '22 17:10

Rajesh Hegde