These instructions will configure Firefox to use Gmail or your Google Apps hosting account to handle mailto links:
First, type
Then, log into GMail or your Google Apps mail URL, paste this line of JavaScript into your address bar, and hit enter:
For Gmail:
javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")
For Google Apps:
javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/example.com/mail/?extsrc=mailto&url=%s","GMail")
Replace “example.com” with your domain.
After you hit enter, Firefox should ask permission to add Gmail as the default mailto handler.
To undo this, click Edit Preferences > Applications. Search for mailto. Choose Application Details from dropdown under Actions. Highlight Gmail and click Remove.
I used these instructions on Firefox 3.0.1 on Ubuntu 8.10. This post was compiled from info found in this article and its comments at lifehacker.com.
Comments
Thanks for the note, sghiassy. Have found this tutorial on a zillion blogs, but each and every one of them had the double quote problem. Darn wordpress.
This rocks, thanks for making this so easy and helpful. You make wannabee techies like me look good.
[...] Configure Firefox to use Gmail or Google Apps for MailTo Links Posted by root 16 minutes ago (http://www.samlesher.com) Darn wordpress comment from sam lesher on april 22 2009 8 02 pm blur coffee amp tv middot the smashing pumpkins cherub rock middot gorillaz last living souls powered by wordpress copyright 2009 sam lesher all rights reserved Discuss | Bury | News | Configure Firefox to use Gmail or Google Apps for MailTo Links [...]
You might want to update this post, as I used it .. however .. the latest version of Firefox 3.5 already has Gmail in its list .. and thankfully your insertion of the Google Apps handler had a slightly different name for the list. You used GMail for Google Apps while firefox used Gmail for regular gmail. Note the uppercase and lowercase “m”.
Regardless I would just change the google apps javascript pasty to go something like this instead:
javascript:window.navigator.registerProtocolHandler(“mailto”,”https://mail.google.com/a/example.com/mail/?extsrc=mailto&url=%s”,”Google Apps GMail”)
So that if someone is selecting them from the Firefox Tools> Applications Settings > Mailto: handler .. it will show up in the list as:
Google Apps GMail
Thanks,
// mike
I had to change network.protocol-hndler.expose.mailto and network.protocol-handler.external.mailto both to true before I got the Add Application confirmation, But now it works….
Thanks Coyote! Your suggestion is just what I needed for FF 3.6.3 on Win 7.
Anyone know how I can get the Google reply to pop up in a new window the way it does when you hold the shift key and click on the Compose link?
Followed your instructions as we use google apps for our work email and it worked perfectly. Cheeers! I love how there is always someone somewhere on the internet that has published the soluntion to any problem. Thanks!









Hey,
Thanks for the instructions.
Just as a note, when I copied and pasted the javascript into the address bar it didn’t work. The reason was, is that the double-quote ["] copied over incorrectly.
So for future people’s use… simply retype the double-quotes to get it to work.