Skip to main content

Firefox 3: Set Firefox 3 to Launch Gmail for mailto Links

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Related Lists

Bookmark History

Saved by 70 people (-9 private), first by anonymouse user on 2008-05-21


Public Sticky notes

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

Highlighted by lethalox

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

Highlighted by fichter

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

Highlighted by fichter

Here's how to configure Firefox 3 to use Gmail as your default mailto: application handler.

Highlighted by leadingzero

Here's how to configure Firefox 3 to use Gmail as your default mailto: application handler.

Highlighted by leadingzero

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

Highlighted by fichter

Set Firefox 3 to Launch Gmail for mailto Links

Highlighted by tkackey

Set Firefox 3 to Launch Gmail for mailto Links

Highlighted by docspike

Ready to set up Gmail? Roll up those sleeves.

  1. Open Gmail in Firefox.
  2. In the tab where Gmail is loaded, copy and paste the following snippet of JavaScript into your address bar:
    javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

    If you are a Google Apps user, use this code instead, but replace example.com with your domain name:
    javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/example.com/mail/?extsrc=mailto&url=%s","GMail")
  3. Firefox 3 will ask permission to add Gmail as default mailto handler. Click the Add Application button, as shown.

Update, 6/18/08: Thanks to a great tip from a reader Andrew, the instructions above have been shortened considerably. Thanks, Andrew!

Now, if you click a mailto: link—try the tips link on Lifehacker's sidebar—Firefox 3 will ask which application you want to use. Choose Gmail, and select "Remember my choice for mailto links" to set the preference permanently.

gmail-handler-choice-win.png

Highlighted by hamedmay82

In the tab where Gmail is loaded, copy and paste the following snippet of JavaScript into your address bar:
javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

Highlighted by wizzylolly

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/example.com/mail/?extsrc=mailto&url=%s","GMail")

Highlighted by nuyoda

Google Apps user, use this code instead

Highlighted by oneeye

To be on the safe side, head back into about:config and set gecko.handlerService.allowRegisterFromDifferentHost back to false.

Highlighted by oneeye

how about opening this in a smaller, popup window? Like the Mailto2Webmail Greasemonkey script?

Highlighted by oneeye

I'd still prefer to just install BetterGmail 2. Hopefully that will be updated for FF3 soon, along with BetterGcal.

Highlighted by oneeye

once Gmail Manager is updated for Fx3 I can use its features to compose in a new tab, plus it accepts the additional subject/body parms just fine

Highlighted by oneeye

When I open a new tab, it defaults to about:blank. I had to ensure that NoScript was allowing scripts from about:blank.

Highlighted by oneeye

Hmm... so now the question is how to remove one? I have a regular and a hosted account, so added both.. but they're both named "GMail" in the javascript above. I tried to re-add with a name of "GMail Hosted" but it says that I've already registered that handler. :(

Highlighted by oneeye

Tools->Options

Highlighted by oneeye

Applications Tab. Search for mailto. Drop down the select box, and choose Application Details. Hit the Remove button to remove Gmail

Highlighted by oneeye

(gecko.handlerService.schemes.webcal.0.name;30 Boxes). Wonder how it's invoked, or if that can be changed to Google Calendar?

Highlighted by oneeye

Wonder how it's invoked, or if that can be changed to Google Calendar? "
@roachfiend: Surely it can using the same method above; the catch is that GCal has to have a URL available that can take a webcal link and handle it correctly, the way that Gmail URL can take a mailto:someone@example.com and turn it into a compose field correctly. Is there one that you know of?

Webapps just have to catch up to take advantage of the new feature, and no doubt they will eventually.

Highlighted by oneeye