Make Gmail the default Firefox Mail Client

Martin Brinkmann
Jul 4, 2008
Updated • Jul 16, 2013
Firefox, Gmail
|
15

If you like to access your Gmail account on the official website and not in a desktop email client, then you may have noticed that it is not really that easy to get so called mailto: links open up in the web interface when you click on them. Instead of Gmail, Outlook or another desktop email client may open up which is probably not what you want.

The official Gmail blog posted a tip recently on how to make Gmail the default mailto handler in the browser, so that a click on an email address opens Gmail and not another client.

It is relatively easy to do so, but only if you know the process. I'm going to show you how to configure Firefox in a way that Gmail is opened when you click on emails in the browser.

Setting up Gmail as the default mail program in Firefox

The first thing you need to do is visit the official Gmail website and sign in if you have not done so already. Follow the instructions below once you have done so:

  1. Press Ctrl-Shift-K to open Firefox's Web Console. Alternatively, press the Alt-Key, and select Tools > Web Developer > Web Console.
  2. Paste the following line of code into the form here and hit the enter key afterwards.
  3. javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail")

You should see a notification at the top of the Gmail page that informs you that Gmail has been added as an application for mailto links. You may need to click on the add link displayed here to add it to the browser.

Once you have done that, it is necessary to select the newly added handler as the default program for Gmail. Proceed with the following steps to do so:

  1. Press the Alt-key again on the keyboard and select Tools > Options from the menu bar.
  2. Switch to Applications here and enter mailto in the search on top of the screen.
  3. This should display only one entry, listing the program that is currently being used to open email links.
  4. Click on the program and switch to Use Gmail in the options.

use gmail firefox mail

Close the settings dialog afterwards and test the newly made setting by clicking on an email in the browser. You should notice that the Gmail compose window is automatically opened when you do so.

You can change the preference back at any time, to a different email client, or, if you prefer that, to always ask which displays a dialog that you can then use to pick one of the available email clients.

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Sharon said on February 27, 2010 at 6:57 pm
    Reply

    This is so GREAT, thanks! Now, can anyone tell me how to actually make the new email open in the current Gmail tab (using tabmixplus) instead of overwriting the tab with the link? I’ve had it work that way in the past, but it’s not now, don’t get it….

    Sharon

  2. MOHCTP said on June 18, 2009 at 4:03 am
    Reply

    I paste
    protocol:javascript:window.navigator.registerProtocolHandler(“mailto”,”https://mail.google.com/mail/?extsrc=mailto&url=%s”,”Gmail”)
    into the location, hit enter, and Firefox says that it can’t open this location because protocol(protocol) has no program associated with it.

    1. Heidi said on December 9, 2009 at 6:51 am
      Reply

      Thank you, Martin! I had done the first step (copying that line into the URL bar), but not the second step (Tools>Options>Apps). It works now! Thanks again!

  3. Javier said on July 23, 2008 at 4:07 am
    Reply
  4. jim said on July 16, 2008 at 5:11 am
    Reply

    okay, copy and paste this code into the URL? I do and it says “done”: in the lower left corner of Firefox. I think Vista and Firefox 3 both are getting toooooooooo GUI. Vista is reminding me of Millennium Edition so much that it sux. I want XP back, but my Toshiba would have nightmares due to my on board wifi.

  5. mordy said on July 7, 2008 at 2:31 am
    Reply

    after i added this to my gmail, every new email i type now gets this inserted into the body of my email:

    Compose new
    Inbox
    Starred
    Chats
    Sent Mail
    Drafts
    All Mail
    any ideas why or how to get rid of this? it sucks

  6. Reinhardt said on July 5, 2008 at 2:24 am
    Reply

    I am reading your blog for quiet a while now but this is the first time i post something here ;)
    Thanks a lot for the nice and amacingly interessting blog, and special thanks for this artikle, i have been rly looking for something like that =)

  7. Robert said on July 5, 2008 at 12:52 am
    Reply

    If you’re using the Tab Mix Plus extension and have it set to open typed URLs in a new tab, disable it before following these steps. Otherwise, entering the script above will just open a new (blank) tab with no effect.

  8. Abd said on July 4, 2008 at 9:17 pm
    Reply

    OK, got it! Thanks!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.