Use Gmail to open mailto: links

Use a browser based email client? — link directly to it from email addresses / mailto links


My company moved to Gmail as their corporate mail provider and it was frustrating that when I clicked on mailto links on the web it continued to open my outlook client. Grrr. Finally found a solution.

First you need to open Gmail. Within the gmail tab in chrome open the javascript console and enter the following in the address bar:

javascript:navigator.registerProtocolHandler(“mailto”,”https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail");

Accept the confirmation from the browser and you should be good to go.


Alternatively, to run the javascript snippet in Firefox you need to use scratchpad within the web developer menu.

If you go to the “Web Developer” menu (or if you’re on a Mac, Tools > Web Developer) and select “Scratchpad” up will pop a box where you can enter the JS snipped above, right click and “Run” it on the webpage.

Email me when nialljpmurphy publishes or recommends stories