Configure Firefox to use Gmail or Google Apps for MailTo Links

These instructions will configure Firefox to use Gmail or your Google Apps hosting account to handle mailto links:

First, type about:config in the address bar, search for gecko.handlerService.allowRegisterFromDifferentHost, and set the value to true.

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.

Posted in Firefox   |   Comments (7 )

Comments

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.

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.

Thanks for the heads up, sghiassy. The post should be fixed now.

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….

Leave a comment

(required)

(required)